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:
akr 2004-04-07 06:01:25 +00:00
parent ae8dfe8626
commit 66d0389895

View File

@ -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