From 9a1716fdb289e7bcdabf9050bfdf051106e2cce0 Mon Sep 17 00:00:00 2001 From: matz Date: Tue, 30 May 2000 04:24:17 +0000 Subject: 2000-05-30 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@717 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- sample/test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sample/test.rb') diff --git a/sample/test.rb b/sample/test.rb index dca87d2e55..8f789fdd88 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) -- cgit v1.2.3