From 65753a5838bf32db668ef29a52dc801c306384ee Mon Sep 17 00:00:00 2001 From: mame Date: Sun, 10 Feb 2008 21:52:25 +0000 Subject: * 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 --- test/ruby/test_pack.rb | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'test/ruby/test_pack.rb') 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 -- cgit v1.2.3