diff options
Diffstat (limited to 'test/ruby/test_pack.rb')
-rw-r--r-- | test/ruby/test_pack.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/ruby/test_pack.rb b/test/ruby/test_pack.rb index 4bb17993f5..4132c89a61 100644 --- a/test/ruby/test_pack.rb +++ b/test/ruby/test_pack.rb @@ -10,12 +10,12 @@ class TestPack < Test::Unit::TestCase ary = [1,-100,127,128,32767,987.654321098 / 100.0,12345,123456,-32767,-123456,"abcdef"] $x = ary.pack($format) ary2 = $x.unpack($format) - + assert_equal(ary.length, ary2.length) assert_equal(ary.join(':'), ary2.join(':')) assert($x =~ /def/) - + $x = [-1073741825] - assert_equal($x.pack("q").unpack("q"), $x) + assert_equal($x, $x.pack("q").unpack("q")) end end |