add an assertion for [0x100000000].pack("U").
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6119 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
ae8dfe8626
commit
66d0389895
@ -52,5 +52,6 @@ class TestPack < Test::Unit::TestCase
|
|||||||
assert_equal "\375\200\200\200\200\200", [0x40000000].pack("U")
|
assert_equal "\375\200\200\200\200\200", [0x40000000].pack("U")
|
||||||
assert_equal "\375\277\277\277\277\277", [0x7fffffff].pack("U")
|
assert_equal "\375\277\277\277\277\277", [0x7fffffff].pack("U")
|
||||||
assert_raises(RangeError) { [0x80000000].pack("U") }
|
assert_raises(RangeError) { [0x80000000].pack("U") }
|
||||||
|
assert_raises(RangeError) { [0x100000000].pack("U") }
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user