From 8c5cb5e782ac03f28ecaa3e2bf77b2062e6be279 Mon Sep 17 00:00:00 2001 From: Tomoyuki Sahara Date: Wed, 8 May 2013 09:40:24 +0900 Subject: cannot pack objects other than the first one. closes #1. --- test/pack.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test') diff --git a/test/pack.rb b/test/pack.rb index 7339bbdee..7789fb446 100644 --- a/test/pack.rb +++ b/test/pack.rb @@ -83,3 +83,8 @@ assert('["abc"].pack("A")') do "abc\0".unpack("A4") == ["abc"] and "abc ".unpack("A4") == ["abc"] end + +# regression tests +assert('issue #1') do + [1, 2].pack("nn") == "\000\001\000\002" +end -- cgit v1.2.3