1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
usa 2013-07-05 11:50:31 +00:00
parent 9b9654c3c3
commit 9fd8204e27
2 changed files with 9 additions and 1 deletions

View file

@ -1,3 +1,11 @@
Fri Jul 5 20:46:39 2013 NAKAMURA Usaku <usa@ruby-lang.org>
* 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 <knu@iDaemons.org> Fri Jul 5 19:05:40 2013 Akinori MUSHA <knu@iDaemons.org>
* lib/fileutils.rb (FileUtils#chown, FileUtils#chown_R): Fix the * lib/fileutils.rb (FileUtils#chown, FileUtils#chown_R): Fix the

View file

@ -49,7 +49,7 @@ EOS
assert_match(/^("?)A\1$/, `echo "\u0041"`) #" assert_match(/^("?)A\1$/, `echo "\u0041"`) #"
assert_match(/^("?)A\1$/, %x{echo "\u0041"}) #" assert_match(/^("?)A\1$/, %x{echo "\u0041"}) #"
assert_match(/^("?)ü\1$/, 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 # \u in quoted symbols
assert_equal(:A, :"\u0041") assert_equal(:A, :"\u0041")