From 8f79c623f39756cce4c8a81dc77d24972629ae7d Mon Sep 17 00:00:00 2001 From: akr Date: Thu, 12 Jul 2007 13:23:29 +0000 Subject: add tests for [ruby-dev:31189] and [ruby-dev:31190]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12746 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_fixnum.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'test/ruby/test_fixnum.rb') diff --git a/test/ruby/test_fixnum.rb b/test/ruby/test_fixnum.rb index 57999d4b03..4cf73fb4c8 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 -- cgit v1.2.3