summaryrefslogtreecommitdiffstats
path: root/sample
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-05-30 04:24:17 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-05-30 04:24:17 +0000
commitec620c402573af9960920809c6b210fcbc9e9fba (patch)
treef08529a845b5a16b93635eeb06b58553252692c9 /sample
parent27351b924a7fc0aa47da3e19f01468904c32dbe2 (diff)
downloadruby-ec620c402573af9960920809c6b210fcbc9e9fba.tar.gz
ruby-ec620c402573af9960920809c6b210fcbc9e9fba.tar.xz
ruby-ec620c402573af9960920809c6b210fcbc9e9fba.zip
2000-05-30
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@717 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'sample')
-rw-r--r--sample/test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/sample/test.rb b/sample/test.rb
index dca87d2e5..8f789fdd8 100644
--- a/sample/test.rb
+++ b/sample/test.rb
@@ -1026,10 +1026,10 @@ ok($x == Marshal.load($y))
check "pack"
-$format = "c2x5CCxsdila6";
+$format = "c2x5CCxsdils_l_a6";
# Need the expression in here to force ary[5] to be numeric. This avoids
# test2 failing because ary2 goes str->numeric->str and ary does not.
-ary = [1,-100,127,128,32767,987.654321098 / 100.0,12345,123456,"abcdef"]
+ary = [1,-100,127,128,32767,987.654321098 / 100.0,12345,123456,-32767,-123456,"abcdef"]
$x = ary.pack($format)
ary2 = $x.unpack($format)