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
@ -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…
x
Reference in New Issue
Block a user