diff --git a/lib/phisol/compiler/assignment.rb b/lib/phisol/compiler/assignment.rb index d6bc9d2d..374c8506 100644 --- a/lib/phisol/compiler/assignment.rb +++ b/lib/phisol/compiler/assignment.rb @@ -20,7 +20,7 @@ module Phisol end end if( code ) - puts "addin code #{code}" + #puts "addin code #{code}" @method.source.add_code code else raise "must define variable #{name} before using it in #{@method.inspect}" diff --git a/test/compiler/statements/test_call.rb b/test/compiler/statements/test_call.rb new file mode 100644 index 00000000..cc7c218b --- /dev/null +++ b/test/compiler/statements/test_call.rb @@ -0,0 +1,89 @@ +require_relative 'helper' + +module Register +class TestCallStatement < MiniTest::Test + include Statements + + def test_call_constant_int + @string_input = <