This commit is contained in:
Torsten Ruger 2015-10-26 17:23:35 +02:00
parent a0944266c5
commit 9d0b264b79
5 changed files with 12 additions and 43 deletions

View File

@ -16,7 +16,7 @@ module Soml
if(receiver ) if(receiver )
if( receiver.first == :self) #class method if( receiver.first == :self) #class method
class_method = @clazz class_method = @clazz
@clazz = @clazz.meta_class @clazz = @clazz.meta
else else
raise "Not covered #{receiver}" raise "Not covered #{receiver}"
end end

View File

@ -4,7 +4,7 @@ module Register
class TestBasicClass < MiniTest::Test class TestBasicClass < MiniTest::Test
include Statements include Statements
def pest_class_def def test_class_def
@string_input = <<HERE @string_input = <<HERE
class Bar class Bar
int self.buh() int self.buh()

View File

@ -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_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"

View File

@ -1,5 +1,5 @@
require_relative "test_compat" require_relative "test_compat"
require_relative "test_instructions"
require_relative "test_padding" require_relative "test_padding"
require_relative "test_positioning" require_relative "test_positioning"
require_relative "test_instructions"

View File

@ -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