From 9fb89e09f34e9ad9081858d2199762789d5723b3 Mon Sep 17 00:00:00 2001 From: Torsten Ruger Date: Tue, 27 Dec 2016 20:41:01 +0200 Subject: [PATCH] fixes for tighter argument handling --- test/typed/expressions/test_call.rb | 3 +++ test/typed/parfait/test_attributes.rb | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/test/typed/expressions/test_call.rb b/test/typed/expressions/test_call.rb index cadb608d..79372d90 100644 --- a/test/typed/expressions/test_call.rb +++ b/test/typed/expressions/test_call.rb @@ -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 diff --git a/test/typed/parfait/test_attributes.rb b/test/typed/parfait/test_attributes.rb index 87f9aed4..a1ed443a 100644 --- a/test/typed/parfait/test_attributes.rb +++ b/test/typed/parfait/test_attributes.rb @@ -13,7 +13,7 @@ class TestAttributes < MiniTest::Test def test_message_name_nil 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 end def test_message_next_set