fix last failing tests

historic moment: all the test (currently 56) work on the arm too
This commit is contained in:
Torsten Ruger 2015-11-20 14:37:26 +02:00
parent f9e95d7d1f
commit 22117035e0
2 changed files with 6 additions and 5 deletions

View File

@ -43,6 +43,7 @@ module RuntimeTests
assert_equal ret , interpreter.get_register(:r0).return_value , "exit wrong #{@string_input}" assert_equal ret , interpreter.get_register(:r0).return_value , "exit wrong #{@string_input}"
end end
check_remote ret check_remote ret
interpreter
end end
def connected def connected

View File

@ -5,7 +5,7 @@ class TestLayoutRT < MiniTest::Test
def test_main def test_main
@main = "return 1" @main = "return 1"
check_return 1 check 1
end end
def check_return_class val def check_return_class val
@ -13,14 +13,14 @@ class TestLayoutRT < MiniTest::Test
def test_get_layout def test_get_layout
@main = "return get_layout()" @main = "return get_layout()"
check interpreter = check
assert_equal Parfait::Layout , @interpreter.get_register(:r0).return_value.class assert_equal Parfait::Layout , interpreter.get_register(:r0).return_value.class
end end
def test_get_class def test_get_class
@main = "return get_class()" @main = "return get_class()"
check interpreter = check
assert_equal Parfait::Layout , @interpreter.get_register(:r0).return_value.class assert_equal Parfait::Class , interpreter.get_register(:r0).return_value.class
end end
def test_puts_class def test_puts_class