stab at inter to string

wip
This commit is contained in:
Torsten Ruger
2015-11-08 17:11:03 +02:00
parent c38775e933
commit 6f69995284
5 changed files with 29 additions and 29 deletions

View File

@ -5,7 +5,8 @@ class TestPutiRT < MiniTest::Test
def test_puti
@string_input = <<HERE
5.puts()
Word five = 5.to_s()
five.putstring()
HERE
@stdout = "5"
check

View File

@ -9,7 +9,7 @@ class TestObject < MiniTest::Test
def test_object_create
# another test sometime adds a field variable. Maybe should reboot ?
res = 1
[:boo1 , :boo2 , :runner].each { |v| res += 1 if @object.get_layout.variable_index(v) }
[:boo1 , :boo2 , :bro , :runner].each { |v| res += 1 if @object.get_layout.variable_index(v) }
assert_equal res , @object.get_layout.instance_length , @object.get_layout.inspect
end