finally did assert_function_call

for cleaner reading, like all other instruction asserts
This commit is contained in:
2020-03-10 17:27:13 +02:00
parent cf5a3c0102
commit ede103e73d
3 changed files with 9 additions and 6 deletions

View File

@@ -24,8 +24,7 @@ module SlotMachine
assert_slot_to_reg 4 ,:message , 1 , :message
end
def test_5_call
assert_equal Risc::FunctionCall , risc(5).class
assert_equal :meth , risc(5).method.name
assert_function_call 5 , :meth
end
def test_6_label
assert_label 6 , "after_meth_"