diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-01-29 13:07:25 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-01-29 13:07:25 +0000 |
commit | e1b85cbf17f3da7078452890edfc9c6e8cd7c001 (patch) | |
tree | 27b47783fe5969db45613240bc6c69a167a26d95 | |
parent | 6e3391c8665d83824fce669069ca67b69b952e2d (diff) | |
download | ruby-e1b85cbf17f3da7078452890edfc9c6e8cd7c001.tar.gz |
add tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15324 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | test/ruby/test_m17n.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/ruby/test_m17n.rb b/test/ruby/test_m17n.rb index 922af05d5b..1779e474cb 100644 --- a/test/ruby/test_m17n.rb +++ b/test/ruby/test_m17n.rb @@ -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 |