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 | 70dfb6bd6972636f4855c964b5bf2872725e9341 (patch) | |
| tree | dcc9d1d0595f4e15f283f3631ccfce2bd22a100f /test/ruby | |
| parent | d368dc085f4167a7564a64e2da07539e3160369b (diff) | |
| download | ruby-70dfb6bd6972636f4855c964b5bf2872725e9341.tar.gz ruby-70dfb6bd6972636f4855c964b5bf2872725e9341.tar.xz ruby-70dfb6bd6972636f4855c964b5bf2872725e9341.zip | |
add a test for String#end_with?.
git-svn-id: http://svn.ruby-lang.org/repos/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 647c52070..b684ca8bd 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 |
