diff options
| author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-07-12 13:23:29 +0000 |
|---|---|---|
| committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-07-12 13:23:29 +0000 |
| commit | cb56c5204e3135f79c5c815730c7fe40d23617d4 (patch) | |
| tree | 33f1ed85008ffddefce5baec1c82b3d1ec55d9bc /test/ruby/test_fixnum.rb | |
| parent | 2379369d27e942dc207fcf4e5a172dd6ef1adf16 (diff) | |
| download | ruby-cb56c5204e3135f79c5c815730c7fe40d23617d4.tar.gz ruby-cb56c5204e3135f79c5c815730c7fe40d23617d4.tar.xz ruby-cb56c5204e3135f79c5c815730c7fe40d23617d4.zip | |
add tests for [ruby-dev:31189] and [ruby-dev:31190].
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12746 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_fixnum.rb')
| -rw-r--r-- | test/ruby/test_fixnum.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/ruby/test_fixnum.rb b/test/ruby/test_fixnum.rb index 57999d4b0..4cf73fb4c 100644 --- a/test/ruby/test_fixnum.rb +++ b/test/ruby/test_fixnum.rb @@ -23,4 +23,14 @@ class TestFixnum < Test::Unit::TestCase end end end + + def test_succ + assert_equal(0x40000000, 0x3fffffff.succ, "[ruby-dev:31189]") + assert_equal(0x4000000000000000, 0x3fffffffffffffff.succ, "[ruby-dev:31190]") + end + + def test_plus + assert_equal(0x4000000000000000, 0x3fffffffffffffff+1) + end + end |
