mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 16:44:01 +02:00
* error.c (name_err_mesg_to_str): preserve encoding of inspection.
[ruby-core:29948] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27615 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
16c40ec1a5
commit
e8249be9fc
3 changed files with 14 additions and 1 deletions
|
@ -304,4 +304,12 @@ end.join
|
|||
end
|
||||
assert(!e.success?)
|
||||
end
|
||||
|
||||
def test_nomethoderror
|
||||
bug3237 = '[ruby-core:29948]'
|
||||
str = "\u2600"
|
||||
id = :"\u2604"
|
||||
e = assert_raise(NoMethodError) {str.__send__(id)}
|
||||
assert_equal("undefined method `#{id}' for #{str.inspect}:String", e.message, bug3237)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue