summaryrefslogtreecommitdiff
path: root/test/ruby/test_bignum.rb
diff options
context:
space:
mode:
authornahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-09-06 17:27:58 +0000
committernahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-09-06 17:27:58 +0000
commita7357c196559f3181e359662d92cb06d7b18e3cb (patch)
tree449e30f756b8267489357d3241fbf517c01d4f6c /test/ruby/test_bignum.rb
parentd7c5b0518a91b9e636f441c9488d749c435e2247 (diff)
* test/ruby/test_*.rb: assert_same, assert_match, and so on.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4526 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_bignum.rb')
-rw-r--r--test/ruby/test_bignum.rb18
1 files changed, 9 insertions, 9 deletions
diff --git a/test/ruby/test_bignum.rb b/test/ruby/test_bignum.rb
index 0ba2397c54..d05bc5406b 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