summaryrefslogtreecommitdiffstats
path: root/test/ruby
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
commit1f8c4ff2c888cc54387650adb5d576383061ba8e (patch)
tree855560a578b047542e2caa4ead43019a66e514dd /test/ruby
parent5c81ef1ba52670cee790bf50d756142a87db1fa2 (diff)
downloadruby-1f8c4ff2c888cc54387650adb5d576383061ba8e.tar.gz
ruby-1f8c4ff2c888cc54387650adb5d576383061ba8e.tar.xz
ruby-1f8c4ff2c888cc54387650adb5d576383061ba8e.zip
add a test.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15131 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
-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 5d8deee2b..52eb586d0 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