mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
add tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15324 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
6e3391c866
commit
e1b85cbf17
1 changed files with 8 additions and 0 deletions
|
@ -1082,4 +1082,12 @@ class TestM17N < Test::Unit::TestCase
|
|||
assert_regexp_usascii_literal('/\u1234\x80/', nil, SyntaxError)
|
||||
assert_regexp_usascii_literal('/\u1234#{}\x80/', nil, ArgumentError)
|
||||
end
|
||||
|
||||
def test_gbk
|
||||
assert_equal("", "\x81\x40".force_encoding("GBK").chop)
|
||||
end
|
||||
|
||||
def test_euc_tw
|
||||
assert_equal("a", "a\x8e\xa2\xa1\xa1".force_encoding("euc-tw").chop)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue