fixes for tighter argument handling

This commit is contained in:
Torsten Ruger
2016-12-27 20:41:01 +02:00
parent 7462d0c486
commit 9fb89e09f3
2 changed files with 4 additions and 1 deletions

View File

@ -16,17 +16,20 @@ module Register
end
def test_call_main_int
Register.machine.space.get_main.add_argument(:blar , :Integer)
@input =s(:call,s(:name, :main),s(:arguments , s(:int, 1)))
check
end
def test_call_main_string
Register.machine.space.get_main.add_argument(:blar , :Word)
@input =s(:call,s(:name, :main),s(:arguments , s(:string, "1") ))
check
end
def test_call_main_op
Register.machine.space.get_main.add_local(:bar , :Integer)
Register.machine.space.get_main.add_argument(:blar , :Integer)
@input =s(:call,s(:name, :main),s(:arguments , s(:name, :bar) ))
check
end