more messages for recursive fibs

This commit is contained in:
Torsten Ruger 2015-11-05 12:23:11 +02:00
parent 4014ad27fe
commit aad50021fe
3 changed files with 5 additions and 2 deletions

View File

@ -171,6 +171,7 @@ module Interpreter
end
def execute_OperatorInstruction
#puts @instruction
left = get_register(@instruction.left)
rr = @instruction.right
right = get_register(rr)

View File

@ -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

View File

@ -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