aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby/test_module.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-10-20 05:20:39 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-10-20 05:20:39 +0000
commitbd2d094aab4c672d5fef4a126087e0cded864c6c (patch)
treeac982f78cd6f3a12b88d2eef4667d3b597d37859 /test/ruby/test_module.rb
parent6948188f3804e612de498dac654c278a342d49bf (diff)
downloadruby-bd2d094aab4c672d5fef4a126087e0cded864c6c.tar.gz
vm_insnhelper.c: preserve encoding
* vm_insnhelper.c (vm_getivar): preserve variable name encoding in warning message. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48047 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_module.rb')
-rw-r--r--test/ruby/test_module.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/ruby/test_module.rb b/test/ruby/test_module.rb
index f025c1948e..5a0d819fb7 100644
--- a/test/ruby/test_module.rb
+++ b/test/ruby/test_module.rb
@@ -1826,6 +1826,11 @@ class TestModule < Test::Unit::TestCase
assert_warning '' do
assert_equal(42, a.ivar)
end
+
+ name = "@\u{5909 6570}"
+ assert_warning(/instance variable #{name} not initialized/) do
+ assert_nil(a.instance_eval(name))
+ end
end
def test_uninitialized_attr