diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-01-23 18:14:28 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-01-23 18:14:28 +0000 |
commit | fe068da87997d1d412758c4aefa12a8a6621d005 (patch) | |
tree | dcc9d1d0595f4e15f283f3631ccfce2bd22a100f /test/ruby | |
parent | ea5aa335047238ac7dce2d72caf828f3e5359477 (diff) | |
download | ruby-fe068da87997d1d412758c4aefa12a8a6621d005.tar.gz |
add a test for String#end_with?.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15198 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_string.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/ruby/test_string.rb b/test/ruby/test_string.rb index 647c520707..b684ca8bd1 100644 --- a/test/ruby/test_string.rb +++ b/test/ruby/test_string.rb @@ -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 |