diff --git a/lib/interpreter/interpreter.rb b/lib/interpreter/interpreter.rb index f56d4d13..2938689f 100644 --- a/lib/interpreter/interpreter.rb +++ b/lib/interpreter/interpreter.rb @@ -171,6 +171,7 @@ module Interpreter end def execute_OperatorInstruction + #puts @instruction left = get_register(@instruction.left) rr = @instruction.right right = get_register(rr) diff --git a/test/compiler/fragments/test_recursive_fibo.rb b/test/compiler/fragments/test_recursive_fibo.rb index ccdedf1e..4ff8df16 100644 --- a/test/compiler/fragments/test_recursive_fibo.rb +++ b/test/compiler/fragments/test_recursive_fibo.rb @@ -27,7 +27,9 @@ class Object end end HERE - @length = 82 + @length = 6594 check + assert_equal Parfait::Message , @interpreter.get_register(:r1).class +#TODO, works in the gui?? assert_equal 55 , @interpreter.get_register(:r1).return_value end end diff --git a/test/parfait/test_space.rb b/test/parfait/test_space.rb index a3a8696e..72203469 100644 --- a/test/parfait/test_space.rb +++ b/test/parfait/test_space.rb @@ -61,7 +61,7 @@ class TestSpace < MiniTest::Test end assert_equal all.length , all.uniq.length # there is a 5.times in space, but one Message gets created before - assert_equal 5 + 1 , all.length + assert_equal 50 + 1 , all.length end def test_message_vars mess = @machine.space.first_message