diff options
Diffstat (limited to 'test/ruby/test_bignum.rb')
-rw-r--r-- | test/ruby/test_bignum.rb | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/test/ruby/test_bignum.rb b/test/ruby/test_bignum.rb index 0ba2397c5..d05bc5406 100644 --- a/test/ruby/test_bignum.rb +++ b/test/ruby/test_bignum.rb @@ -72,17 +72,17 @@ class TestBignum < Test::Unit::TestCase assert_equal(0, -a % b) end - def test_shift - def shift_test(a) - b = a / (2 ** 32) - c = a >> 32 - assert_equal(b, c) + def shift_test(a) + b = a / (2 ** 32) + c = a >> 32 + assert_equal(b, c) - b = a * (2 ** 32) - c = a << 32 - assert_equal(b, c) - end + b = a * (2 ** 32) + c = a << 32 + assert_equal(b, c) + end + def test_shift shift_test(-4518325415524767873) shift_test(-0xfffffffffffffffff) end |