зеркало из https://github.com/github/ruby.git
* test/ruby/test_unicode_escape.rb (TestUnicodeEscape#test_basic):
Use ruby only on Windows since the test fails on Unix with LANG=C. [ruby-core:47709] [Bug #7076] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37051 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
b5de8fcd81
Коммит
93731ef211
|
@ -1,3 +1,9 @@
|
|||
Sat Sep 29 02:18:57 2012 Hiroshi Shirosaki <h.shirosaki@gmail.com>
|
||||
|
||||
* test/ruby/test_unicode_escape.rb (TestUnicodeEscape#test_basic):
|
||||
Use ruby only on Windows since the test fails on Unix with LANG=C.
|
||||
[ruby-core:47709] [Bug #7076]
|
||||
|
||||
Fri Sep 28 22:19:31 2012 Hiroshi Shirosaki <h.shirosaki@gmail.com>
|
||||
|
||||
* test/ruby/test_unicode_escape.rb (TestUnicodeEscape#test_basic):
|
||||
|
|
|
@ -48,7 +48,11 @@ EOS
|
|||
# \u in %x strings
|
||||
assert_match(/^("?)A\1$/, `echo "\u0041"`) #"
|
||||
assert_match(/^("?)A\1$/, %x{echo "\u0041"}) #"
|
||||
assert_match(/^("?)ü\1$/, `#{EnvUtil.rubybin} -e "puts \\"\u{FC}\\""`.force_encoding("utf-8")) #"
|
||||
if /mswin|mingw/ =~ RUBY_PLATFORM
|
||||
assert_match(/^("?)ü\1$/, `#{EnvUtil.rubybin} -e "puts \\"\u{FC}\\""`.force_encoding("utf-8")) #"
|
||||
else
|
||||
assert_match(/^("?)ü\1$/, `echo "\u{FC}"`.force_encoding("utf-8")) #"
|
||||
end
|
||||
|
||||
# \u in quoted symbols
|
||||
assert_equal(:A, :"\u0041")
|
||||
|
|
Загрузка…
Ссылка в новой задаче