mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
add a test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15131 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
6e1c3a0f54
commit
23346c20d7
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue