From 9fd8204e271ab3ccfb4ae5b001b54bd7718d8f92 Mon Sep 17 00:00:00 2001 From: usa Date: Fri, 5 Jul 2013 11:50:31 +0000 Subject: * test/ruby/test_unicode_escape.rb (TestUnicodeEscape#test_basic): this assertion doesn't seems to be checking the unicode string on command line, but seems to be checking how to treat the unicode string from stdin. so, should escape '\' before 'u'. this fixes a test failure on Windows. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41797 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_unicode_escape.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/ruby') diff --git a/test/ruby/test_unicode_escape.rb b/test/ruby/test_unicode_escape.rb index c1b1e2ca40..2561b49486 100644 --- a/test/ruby/test_unicode_escape.rb +++ b/test/ruby/test_unicode_escape.rb @@ -49,7 +49,7 @@ EOS assert_match(/^("?)A\1$/, `echo "\u0041"`) #" assert_match(/^("?)A\1$/, %x{echo "\u0041"}) #" assert_match(/^("?)ΓΌ\1$/, - `#{EnvUtil.rubybin} -e "#coding:utf-8\nputs \\"\u{FC}\\""`.force_encoding("utf-8")) #" + `#{EnvUtil.rubybin} -e "#coding:utf-8\nputs \\"\\u{FC}\\""`.force_encoding("utf-8")) #" # \u in quoted symbols assert_equal(:A, :"\u0041") -- cgit v1.2.3