fix elf test

This commit is contained in:
Torsten Ruger
2016-12-15 17:57:45 +02:00
parent 1571c796bb
commit 884bf23e5f
6 changed files with 13 additions and 9 deletions

View File

@ -13,8 +13,11 @@ class HelloTest < MiniTest::Test
end
def test_string_put
@input = s(:statements, s(:class, :Object, s(:derives, nil), s(:statements, s(:function, :Integer, s(:name, :main), s(:parameters), s(:statements, s(:return, s(:call, s(:name, :putstring), s(:arguments), s(:receiver, s(:string, "Hello again\\n")))))))))
@input = s(:statements, s(:class, :Object, s(:derives, nil),
s(:statements, s(:function, :Integer, s(:name, :main), s(:parameters),
s(:statements, s(:return, s(:call, s(:name, :putstring), s(:arguments),
s(:receiver, s(:string, "Hello again\\n")))))))))
#FIXME: some more assembly tests need to get to the bottom of this one
# check
check
end
end