mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
use ML ref. for assertion message.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13958 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
c719cd9b46
commit
68543f3092
22 changed files with 92 additions and 115 deletions
|
@ -156,12 +156,11 @@ class TestInteger < Test::Unit::TestCase
|
|||
}
|
||||
}
|
||||
|
||||
# [ruby-dev:31271]
|
||||
# assert_equal(1, (1 << 0x40000000)[0x40000000])
|
||||
# assert_equal(0, (-1 << 0x40000001)[0x40000000])
|
||||
# assert_equal(1, (1 << 0x40000000)[0x40000000], "[ruby-dev:31271]")
|
||||
# assert_equal(0, (-1 << 0x40000001)[0x40000000], "[ruby-dev:31271]")
|
||||
big_zero = 0x40000000.coerce(0)[0]
|
||||
assert_equal(0, (-0x40000002)[big_zero])
|
||||
assert_equal(1, 0x400000001[big_zero])
|
||||
assert_equal(0, (-0x40000002)[big_zero], "[ruby-dev:31271]")
|
||||
assert_equal(1, 0x400000001[big_zero], "[ruby-dev:31271]")
|
||||
end
|
||||
|
||||
def test_plus
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue