summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-01-19 17:44:23 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-01-19 17:44:23 +0000
commit23346c20d78508878ac3468b69e80cf8b93ba864 (patch)
tree855560a578b047542e2caa4ead43019a66e514dd /test
parent6e1c3a0f54d7c68e6ea80853283e6383401266f9 (diff)
add a test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15131 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_m17n.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/ruby/test_m17n.rb b/test/ruby/test_m17n.rb
index 5d8deee2b8..52eb586d01 100644
--- a/test/ruby/test_m17n.rb
+++ b/test/ruby/test_m17n.rb
@@ -825,6 +825,10 @@ class TestM17N < Test::Unit::TestCase
}
end
+ def test_end_with
+ assert_false("\x81\x40".force_encoding("sjis").end_with?("@"))
+ end
+
def test_regexp_match
assert_equal([0,0], //.match("\xa1\xa1".force_encoding("euc-jp"),-1).offset(0))
end