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 | 0b6a0e09f9c9bc6635b63f85c2d95ae56cee530f (patch) | |
tree | 698349a338029d2f6cce0abbacf7337b06f88a29 | |
parent | 5b1746cc000fbc0a045a7de8f64eceb6ec3228c5 (diff) | |
download | ruby-0b6a0e09f9c9bc6635b63f85c2d95ae56cee530f.tar.gz ruby-0b6a0e09f9c9bc6635b63f85c2d95ae56cee530f.tar.xz ruby-0b6a0e09f9c9bc6635b63f85c2d95ae56cee530f.zip |
* test/ruby/test_marshal.rb (test_class_nonascii): test for non-ascii name class.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24514 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-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 4a9192d44..172bfbb3f 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 |