more messages for recursive fibs
This commit is contained in:
parent
4014ad27fe
commit
aad50021fe
@ -171,6 +171,7 @@ module Interpreter
|
|||||||
end
|
end
|
||||||
|
|
||||||
def execute_OperatorInstruction
|
def execute_OperatorInstruction
|
||||||
|
#puts @instruction
|
||||||
left = get_register(@instruction.left)
|
left = get_register(@instruction.left)
|
||||||
rr = @instruction.right
|
rr = @instruction.right
|
||||||
right = get_register(rr)
|
right = get_register(rr)
|
||||||
|
@ -27,7 +27,9 @@ class Object
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
HERE
|
HERE
|
||||||
@length = 82
|
@length = 6594
|
||||||
check
|
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
|
||||||
end
|
end
|
||||||
|
@ -61,7 +61,7 @@ class TestSpace < MiniTest::Test
|
|||||||
end
|
end
|
||||||
assert_equal all.length , all.uniq.length
|
assert_equal all.length , all.uniq.length
|
||||||
# there is a 5.times in space, but one Message gets created before
|
# 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
|
end
|
||||||
def test_message_vars
|
def test_message_vars
|
||||||
mess = @machine.space.first_message
|
mess = @machine.space.first_message
|
||||||
|
Loading…
Reference in New Issue
Block a user