diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-01-08 04:12:29 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-01-08 04:12:29 +0000 |
commit | 902b1094655145946e6432f24d0f275123d59c26 (patch) | |
tree | 45f7e0f13d7e7e42164cef0316fb6f583131e86c /test | |
parent | 59a56629b5c6ebaca9bb9d0c24e841de4e4739b6 (diff) | |
download | ruby-902b1094655145946e6432f24d0f275123d59c26.tar.gz |
* marshal.c (w_symbol): dump no encoding for 7bit only coderange
symbol. [ruby-core:27375]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26249 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_marshal.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/ruby/test_marshal.rb b/test/ruby/test_marshal.rb index 704385897c..28cf38c7db 100644 --- a/test/ruby/test_marshal.rb +++ b/test/ruby/test_marshal.rb @@ -261,6 +261,9 @@ class TestMarshal < Test::Unit::TestCase [:ruby, :"\u{7d05}\u{7389}"].each do |sym| assert_equal(sym, Marshal.load(Marshal.dump(sym)), '[ruby-core:24788]') end + bug2548 = '[ruby-core:27375]' + ary = [:$1, nil] + assert_equal(ary, Marshal.load(Marshal.dump(ary)), bug2548) end ClassUTF8 = eval("class R\u{e9}sum\u{e9}; self; end") |