diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-03-08 07:34:13 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-03-08 07:34:13 +0000 |
commit | 6073c01413225b1e5d08784e6afb49569d48f4a4 (patch) | |
tree | d4bab49ede914632f5f1796b119994b8ef18cf88 /test | |
parent | c99247143e484e4739ab2c495656925424165495 (diff) | |
download | ruby-6073c01413225b1e5d08784e6afb49569d48f4a4.tar.gz |
proc.c: preserve class name encoding in Proc#to_s
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57808 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_proc.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/ruby/test_proc.rb b/test/ruby/test_proc.rb index b46c0a901b..3a0b707885 100644 --- a/test/ruby/test_proc.rb +++ b/test/ruby/test_proc.rb @@ -1174,6 +1174,8 @@ class TestProc < Test::Unit::TestCase x = proc {} x.taint assert_predicate(x.to_s, :tainted?) + name = "Proc\u{1f37b}" + assert_include(EnvUtil.labeled_class(name, Proc).new {}.to_s, name) end @@line_of_source_location_test = __LINE__ + 1 |