mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
add a test for String#end_with?.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15198 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
ea5aa33504
commit
fe068da879
1 changed files with 4 additions and 0 deletions
|
@ -1366,4 +1366,8 @@ class TestString < Test::Unit::TestCase
|
|||
assert_equal(S("4\n"), l.slice!(/\A.*\n/), "[ruby-dev:31665]")
|
||||
assert_nil(l.slice!(/\A.*\n/), "[ruby-dev:31665]")
|
||||
end
|
||||
|
||||
def test_end_with?
|
||||
assert("abc".end_with?("c"))
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue