fix fibs test to 32 bit maxs
This commit is contained in:
parent
f779b5d15f
commit
c190f718ec
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user