Method: String::Etest#test_starts_with
- Defined in:
- lib/vex/boot/string.rb
#test_starts_with ⇒ Object
27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/vex/boot/string.rb', line 27 def test_starts_with assert "abcde".starts_with?("") assert "abcde".starts_with?("a") assert "abcde".starts_with?("ab") assert "abcde".starts_with?("abc") assert "abcde".starts_with?("abcd") assert "abcde".starts_with?("abcde") assert !("abcde".starts_with?("abcdef")) assert !("abcde".starts_with?("xy")) end |