mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
test_m17n.rb: fix encoding
* test/ruby/test_m17n.rb (test_scrub): fix expected encoding, for non-UTF-8 environment. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43507 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
3705b07014
commit
99981ece00
1 changed files with 1 additions and 1 deletions
|
@ -1524,7 +1524,7 @@ class TestM17N < Test::Unit::TestCase
|
|||
assert_raise(ArgumentError){ u("\xE3\x81\x82\xE3\x81\x82\xE3\x81").scrub{u("\x81")} }
|
||||
assert_equal(e("\xA4\xA2\xA2\xAE"), e("\xA4\xA2\xA4").scrub{e("\xA2\xAE")})
|
||||
|
||||
assert_equal("\x81", u("a\x81").scrub {|c| break c})
|
||||
assert_equal(u("\x81"), u("a\x81").scrub {|c| break c})
|
||||
assert_raise(ArgumentError) {u("a\x81").scrub {|c| c}}
|
||||
|
||||
assert_equal("\uFFFD\u3042".encode("UTF-16BE"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue