mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/ruby/test_marshal.rb (test_class_nonascii): test for non-ascii name class.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24514 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
31f4a82942
commit
be245c09e6
1 changed files with 6 additions and 0 deletions
|
@ -198,4 +198,10 @@ class TestMarshal < Test::Unit::TestCase
|
|||
assert_equal(sym, Marshal.load(Marshal.dump(sym)), '[ruby-core:24788]')
|
||||
end
|
||||
end
|
||||
|
||||
ClassUTF8 = eval("class R\u{e9}sum\u{e9}; self; end")
|
||||
def test_class_nonascii
|
||||
a = ClassUTF8.new
|
||||
assert_instance_of(ClassUTF8, Marshal.load(Marshal.dump(a)), '[ruby-core:24790]')
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue