aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby/test_module.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-02-28 06:02:06 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-02-28 06:02:06 +0000
commit1ef1a0c6024daee5278885cd75dbe445299ebd7c (patch)
tree955082fed7290f8c23cf1d5ff823d4d47774d850 /test/ruby/test_module.rb
parent0066608c1317c95f0faf181edc28c158ed050f6a (diff)
downloadruby-1ef1a0c6024daee5278885cd75dbe445299ebd7c.tar.gz
variable.c: preserve name encoding of subclass
* variable.c (rb_tmp_class_path): preserve name encoding of an anonymous instance of module/class subclass. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49778 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_module.rb')
-rw-r--r--test/ruby/test_module.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/ruby/test_module.rb b/test/ruby/test_module.rb
index f2694d7b35..d014e8cb05 100644
--- a/test/ruby/test_module.rb
+++ b/test/ruby/test_module.rb
@@ -1087,6 +1087,8 @@ class TestModule < Test::Unit::TestCase
assert_equal("C\u{df}", c.name, '[ruby-core:24600]')
c = eval("class C\u{df}; self; end")
assert_equal("TestModule::C\u{df}", c.name, '[ruby-core:24600]')
+ c = Module.new.module_eval("class X\u{df} < Module; self; end")
+ assert_match(/::X\u{df}:/, c.new.to_s)
end
def test_method_added