summaryrefslogtreecommitdiff
path: root/test/ruby/test_pack.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby/test_pack.rb')
-rw-r--r--test/ruby/test_pack.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/ruby/test_pack.rb b/test/ruby/test_pack.rb
index 83b4582776..0c5f0383b0 100644
--- a/test/ruby/test_pack.rb
+++ b/test/ruby/test_pack.rb
@@ -85,7 +85,9 @@ class TestPack < Test::Unit::TestCase
assert_match(/\A\x00*\x01\x02\x03\x04\z/, [0x01020304].pack("I!"+mod))
assert_match(/\A\x00*\x01\x02\x03\x04\z/, [0x01020304].pack("l!"+mod))
assert_match(/\A\x00*\x01\x02\x03\x04\z/, [0x01020304].pack("L!"+mod))
- %w[s S l L q Q s! S! i I i! I! l! L!].each {|fmt|
+ assert_match(/\A\x00*\x01\x02\x03\x04\z/, [0x01020304].pack("q!"+mod))
+ assert_match(/\A\x00*\x01\x02\x03\x04\z/, [0x01020304].pack("Q!"+mod))
+ %w[s S l L q Q s! S! i I i! I! l! L! q! Q!].each {|fmt|
fmt += mod
nuls = [0].pack(fmt)
v = 0
@@ -118,7 +120,9 @@ class TestPack < Test::Unit::TestCase
assert_match(/\A\x04\x03\x02\x01\x00*\z/, [0x01020304].pack("I!"+mod))
assert_match(/\A\x04\x03\x02\x01\x00*\z/, [0x01020304].pack("l!"+mod))
assert_match(/\A\x04\x03\x02\x01\x00*\z/, [0x01020304].pack("L!"+mod))
- %w[s S l L q Q s! S! i I i! I! l! L!].each {|fmt|
+ assert_match(/\A\x04\x03\x02\x01\x00*\z/, [0x01020304].pack("q!"+mod))
+ assert_match(/\A\x04\x03\x02\x01\x00*\z/, [0x01020304].pack("Q!"+mod))
+ %w[s S l L q Q s! S! i I i! I! l! L! q! Q!].each {|fmt|
fmt += mod
nuls = [0].pack(fmt)
v = 0