diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-08-12 06:34:59 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-08-12 06:34:59 +0000 |
commit | be245c09e68d8990b20566ad5438140a0d651f42 (patch) | |
tree | 698349a338029d2f6cce0abbacf7337b06f88a29 /test | |
parent | 31f4a829421d2c5ecc21f42d14f5b38ac9e846de (diff) | |
download | ruby-be245c09e68d8990b20566ad5438140a0d651f42.tar.gz |
* 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
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_marshal.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/ruby/test_marshal.rb b/test/ruby/test_marshal.rb index 4a9192d448..172bfbb3f7 100644 --- a/test/ruby/test_marshal.rb +++ b/test/ruby/test_marshal.rb @@ -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 |