aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-07-05 11:50:31 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-07-05 11:50:31 +0000
commit9fd8204e271ab3ccfb4ae5b001b54bd7718d8f92 (patch)
tree374cd5adf3110e8356ef5ad66b25949a4b777273 /test
parent9b9654c3c3d9c42572531752cbb88b6fd906a9be (diff)
downloadruby-9fd8204e271ab3ccfb4ae5b001b54bd7718d8f92.tar.gz
* 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
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_unicode_escape.rb2
1 files changed, 1 insertions, 1 deletions
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")