From 4e61f6d31d6adc76ce1694d921fa6201ae4e0046 Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 8 Mar 2017 07:34:13 +0000 Subject: 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 --- test/ruby/test_proc.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test/ruby') 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 -- cgit v1.2.3