diff options
Diffstat (limited to 'test/ruby/test_marshal.rb')
-rw-r--r-- | test/ruby/test_marshal.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/ruby/test_marshal.rb b/test/ruby/test_marshal.rb index 126efc8ae6..2c5b2aa765 100644 --- a/test/ruby/test_marshal.rb +++ b/test/ruby/test_marshal.rb @@ -595,4 +595,9 @@ class TestMarshal < Test::Unit::TestCase Marshal.dump(TestForRespondToFalse.new) end end + + def test_packed_string + packed = ["foo"].pack("p") + assert_equal(Marshal.dump(""+packed), Marshal.dump(packed)) + end end |