2015-01-10 22:45:14 +00:00
|
|
|
IO.print("abcd".endsWith("cd")) // expect: true
|
|
|
|
|
IO.print("abcd".endsWith("abcde")) // expect: false
|
|
|
|
|
IO.print("abcd".endsWith("abcd")) // expect: true
|
|
|
|
|
IO.print("abcd".endsWith("f")) // expect: false
|
2015-01-22 23:28:54 +00:00
|
|
|
IO.print("abcd".endsWith("")) // expect: true
|
|
|
|
|
|
|
|
|
|
// Non-ASCII.
|
|
|
|
|
IO.print("søméthîng".endsWith("thîng")) // expect: true
|
|
|
|
|
IO.print("søméthîng".endsWith("thing")) // expect: false
|
feat: add 8-bit string test cases across concatenation, contains, count, ends_with, equality, index_of, iterate, iterator_value, join, starts_with, subscript, and to_string
2015-02-04 12:58:16 +00:00
|
|
|
|
2015-02-05 04:26:29 +00:00
|
|
|
// 8-bit clean.
|
feat: add 8-bit string test cases across concatenation, contains, count, ends_with, equality, index_of, iterate, iterator_value, join, starts_with, subscript, and to_string
2015-02-04 12:58:16 +00:00
|
|
|
IO.print("a\0b\0c".endsWith("\0")) // expect: false
|
|
|
|
|
IO.print("a\0b\0c".endsWith("c")) // expect: true
|
|
|
|
|
IO.print("a\0b\0c".endsWith("\0c")) // expect: true
|
|
|
|
|
IO.print("a\0b\0c".endsWith("\0b")) // expect: false
|