1
0
Fork 0
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:
akr 2008-01-23 18:14:28 +00:00
parent ea5aa33504
commit fe068da879

View file

@ -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