summaryrefslogtreecommitdiff
path: root/test/ruby/test_pack.rb
diff options
context:
space:
mode:
authormame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-02-10 21:52:25 +0000
committermame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-02-10 21:52:25 +0000
commit65753a5838bf32db668ef29a52dc801c306384ee (patch)
tree2f88ffe47f8d420ddff88448fe851b2c9413380f /test/ruby/test_pack.rb
parenta336e6ebd12cde09855b13fc8de1644de5bfc3ad (diff)
* test/ruby/test_pack.rb: fix tests for 64bit CPU.
* test/ruby/test_bignum.rb: ditto. * test/ruby/test_file_exhaustive.rb: ditto. * test/ruby/test_integer.rb: ditto. * test/ruby/test_time.rb: ditto. * test/ruby/test_numeric.rb: ditto. * test/ruby/test_fixnum.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15427 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_pack.rb')
-rw-r--r--test/ruby/test_pack.rb10
1 files changed, 4 insertions, 6 deletions
diff --git a/test/ruby/test_pack.rb b/test/ruby/test_pack.rb
index e6e2c28a5c..85d0b7cdfa 100644
--- a/test/ruby/test_pack.rb
+++ b/test/ruby/test_pack.rb
@@ -235,9 +235,8 @@ class TestPack < Test::Unit::TestCase
s1 = [67305985, -50462977].pack("i!*")
s2 = [67305985, 4244504319].pack("I!*")
- assert_equal(s1, s2)
- assert_equal([67305985, -50462977], s2.unpack("i!*"))
- assert_equal([67305985, 4244504319], s1.unpack("I!*"))
+ assert_equal([67305985, -50462977], s1.unpack("i!*"))
+ assert_equal([67305985, 4244504319], s2.unpack("I!*"))
end
def test_pack_unpack_lL
@@ -249,9 +248,8 @@ class TestPack < Test::Unit::TestCase
s1 = [67305985, -50462977].pack("l!*")
s2 = [67305985, 4244504319].pack("L!*")
- assert_equal(s1, s2)
- assert_equal([67305985, -50462977], s2.unpack("l!*"))
- assert_equal([67305985, 4244504319], s1.unpack("L!*"))
+ assert_equal([67305985, -50462977], s1.unpack("l!*"))
+ assert_equal([67305985, 4244504319], s2.unpack("L!*"))
end
def test_pack_unpack_qQ