diff options
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 |