summaryrefslogtreecommitdiff
path: root/test/-ext-/struct
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-03-28 10:32:36 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-03-28 10:32:36 +0000
commit4a46362239ca151be428f1db799c491f09d7403b (patch)
tree8fcce73ad4c06c044cfec76df5895ddae60be949 /test/-ext-/struct
parentafb4bcbfd6a4d315093285679d9aa9270ad7d1ab (diff)
struct.c: encoding of member name
* struct.c (not_a_member): preserve encoding of member name in error messages. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45463 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/-ext-/struct')
-rw-r--r--test/-ext-/struct/test_member.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/-ext-/struct/test_member.rb b/test/-ext-/struct/test_member.rb
index 002941c..89767bf 100644
--- a/test/-ext-/struct/test_member.rb
+++ b/test/-ext-/struct/test_member.rb
@@ -8,5 +8,6 @@ class Bug::Struct::Test_Member < Test::Unit::TestCase
s = S.new(1)
assert_equal(1, s.get(:a))
assert_raise_with_message(NameError, /is not a struct member/) {s.get(:b)}
+ assert_raise_with_message(NameError, /\u{3042}/) {s.get(:"\u{3042}")}
end
end