slightly tighter parfait tests

This commit is contained in:
Torsten Ruger 2015-11-07 22:26:06 +02:00
parent f11e8f0a13
commit ab7e517e9e
2 changed files with 11 additions and 5 deletions

View File

@ -33,7 +33,12 @@ HERE
def check_return val
check
assert_equal Parfait::Message , @interpreter.get_register(:r1).class
assert_equal val , @interpreter.get_register(:r1).return_value
assert_equal Parfait::Message , @interpreter.get_register(:r0).class
assert_equal val , @interpreter.get_register(:r0).return_value
end
def check_return_class val
check
assert_equal val , @interpreter.get_register(:r0).return_value.class
end
end

View File

@ -5,17 +5,18 @@ class TestLayoutRT < MiniTest::Test
def test_main
@string_input = "return 1"
check
check_return 1
end
def test_get_layout
@string_input = "return get_layout()"
check
check_return_class Parfait::Layout
end
def test_get_class
@string_input = "return get_class()"
check
check_return_class Parfait::Layout
end