minors
This commit is contained in:
parent
a0944266c5
commit
9d0b264b79
@ -16,7 +16,7 @@ module Soml
|
||||
if(receiver )
|
||||
if( receiver.first == :self) #class method
|
||||
class_method = @clazz
|
||||
@clazz = @clazz.meta_class
|
||||
@clazz = @clazz.meta
|
||||
else
|
||||
raise "Not covered #{receiver}"
|
||||
end
|
||||
|
@ -4,7 +4,7 @@ module Register
|
||||
class TestBasicClass < MiniTest::Test
|
||||
include Statements
|
||||
|
||||
def pest_class_def
|
||||
def test_class_def
|
||||
@string_input = <<HERE
|
||||
class Bar
|
||||
int self.buh()
|
||||
|
@ -1,10 +1,10 @@
|
||||
require_relative "test_layout"
|
||||
require_relative "test_space"
|
||||
require_relative "test_object"
|
||||
require_relative "test_list"
|
||||
require_relative "test_word"
|
||||
require_relative "test_dictionary"
|
||||
require_relative "test_method"
|
||||
require_relative "test_class"
|
||||
require_relative "test_meta"
|
||||
require_relative "test_attributes"
|
||||
require_relative "test_class"
|
||||
require_relative "test_dictionary"
|
||||
require_relative "test_layout"
|
||||
require_relative "test_list"
|
||||
require_relative "test_meta"
|
||||
require_relative "test_method"
|
||||
require_relative "test_object"
|
||||
require_relative "test_space"
|
||||
require_relative "test_word"
|
||||
|
@ -1,5 +1,5 @@
|
||||
|
||||
require_relative "test_compat"
|
||||
require_relative "test_instructions"
|
||||
require_relative "test_padding"
|
||||
require_relative "test_positioning"
|
||||
require_relative "test_instructions"
|
||||
|
@ -1,31 +0,0 @@
|
||||
#require_relative "compiler_helper"
|
||||
|
||||
class TestMachine #< MiniTest::Test
|
||||
#include CompilerHelper
|
||||
|
||||
def test_object
|
||||
@string_input = <<HERE
|
||||
class Object
|
||||
def get_class()
|
||||
@layout.get_class()
|
||||
end
|
||||
end
|
||||
HERE
|
||||
@output = nil
|
||||
check
|
||||
end
|
||||
|
||||
def test_message_tpye
|
||||
@string_input = <<HERE
|
||||
class Message
|
||||
def get_type_for(name)
|
||||
index = @layout.get_index(name)
|
||||
get_at(index)
|
||||
end
|
||||
end
|
||||
HERE
|
||||
@output = ""
|
||||
check
|
||||
end
|
||||
|
||||
end
|
Loading…
Reference in New Issue
Block a user