diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-07-05 11:50:31 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-07-05 11:50:31 +0000 |
commit | 9fd8204e271ab3ccfb4ae5b001b54bd7718d8f92 (patch) | |
tree | 374cd5adf3110e8356ef5ad66b25949a4b777273 | |
parent | 9b9654c3c3d9c42572531752cbb88b6fd906a9be (diff) |
* 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
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | test/ruby/test_unicode_escape.rb | 2 |
2 files changed, 9 insertions, 1 deletions
@@ -1,3 +1,11 @@ +Fri Jul 5 20:46:39 2013 NAKAMURA Usaku <[email protected]> + + * 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. + Fri Jul 5 19:05:40 2013 Akinori MUSHA <[email protected]> * lib/fileutils.rb (FileUtils#chown, FileUtils#chown_R): Fix the 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") |