Method: String::Etest#test_ends_with
- Defined in:
- lib/vex/boot/string.rb
#test_ends_with ⇒ Object
39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/vex/boot/string.rb', line 39 def test_ends_with assert "abcde".ends_with?("") assert "abcde".ends_with?("e") assert "abcde".ends_with?("de") assert "abcde".ends_with?("cde") assert "abcde".ends_with?("bcde") assert "abcde".ends_with?("abcde") assert !("abcde".ends_with?("abcdef")) assert !("abcde".ends_with?("xy")) end |