diff options
| author | Tomoyuki Sahara <[email protected]> | 2013-05-08 09:40:24 +0900 |
|---|---|---|
| committer | Tomoyuki Sahara <[email protected]> | 2013-05-08 09:40:24 +0900 |
| commit | 8c5cb5e782ac03f28ecaa3e2bf77b2062e6be279 (patch) | |
| tree | 174682c4f75a29e7e560cb5e047d85b435ff761b /test/pack.rb | |
| parent | 7618ca6bb300c7bc1599a6796105cd12c9d03cd7 (diff) | |
| download | mruby-8c5cb5e782ac03f28ecaa3e2bf77b2062e6be279.tar.gz mruby-8c5cb5e782ac03f28ecaa3e2bf77b2062e6be279.zip | |
cannot pack objects other than the first one. closes #1.
Diffstat (limited to 'test/pack.rb')
| -rw-r--r-- | test/pack.rb | 5 |
1 files changed, 5 insertions, 0 deletions
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 |
