fixes for tighter argument handling
This commit is contained in:
parent
7462d0c486
commit
9fb89e09f3
@ -16,17 +16,20 @@ module Register
|
|||||||
end
|
end
|
||||||
|
|
||||||
def test_call_main_int
|
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)))
|
@input =s(:call,s(:name, :main),s(:arguments , s(:int, 1)))
|
||||||
check
|
check
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_call_main_string
|
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") ))
|
@input =s(:call,s(:name, :main),s(:arguments , s(:string, "1") ))
|
||||||
check
|
check
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_call_main_op
|
def test_call_main_op
|
||||||
Register.machine.space.get_main.add_local(:bar , :Integer)
|
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) ))
|
@input =s(:call,s(:name, :main),s(:arguments , s(:name, :bar) ))
|
||||||
check
|
check
|
||||||
end
|
end
|
||||||
|
@ -13,7 +13,7 @@ class TestAttributes < MiniTest::Test
|
|||||||
|
|
||||||
def test_message_name_nil
|
def test_message_name_nil
|
||||||
last = @type.instance_names.last
|
last = @type.instance_names.last
|
||||||
assert_equal :indexed_length , last , @type.instance_names.inspect
|
assert_equal :arguments , last , @type.instance_names.inspect
|
||||||
assert_nil @mess.name
|
assert_nil @mess.name
|
||||||
end
|
end
|
||||||
def test_message_next_set
|
def test_message_next_set
|
||||||
|
Loading…
Reference in New Issue
Block a user