diff --git a/test/compiler/fragments/test_while_fibo.rb b/test/compiler/fragments/test_while_fibo.rb index 8ff769fd..ddf5b763 100644 --- a/test/compiler/fragments/test_while_fibo.rb +++ b/test/compiler/fragments/test_while_fibo.rb @@ -28,17 +28,18 @@ HERE @string_input.sub!( "100" , num.to_s ) end - def test_while_fibo94 - fibo 91 - @length = 2138 + def test_while_fibo48 + fibo 48 + @length = 1149 # this is not the correct fibo, just what comes from wrapping (smaller than below) - check_return 48360591948142405 + check_return 512559680 end - def test_while_fibo90 - fibo 90 - @length = 2115 - check_return 2880067194370816120 + # highest 32 bit fibo + def test_while_fibo47 + fibo 47 + @length = 1126 + check_return 2971215073 end end diff --git a/test/parfait/helper.rb b/test/parfait/helper.rb index 8d570411..db68115a 100644 --- a/test/parfait/helper.rb +++ b/test/parfait/helper.rb @@ -43,7 +43,7 @@ HERE def check_return val check assert_equal Parfait::Message , @interpreter.get_register(:r0).class - assert_equal val , @interpreter.get_register(:r0).return_value + assert_equal val , @interpreter.get_register(:r0).return_value , @string_input end def check_return_class val