2015-01-10 22:45:14 +00:00
|
|
|
IO.print("abcd".startsWith("cd")) // expect: false
|
|
|
|
|
IO.print("abcd".startsWith("a")) // expect: true
|
|
|
|
|
IO.print("abcd".startsWith("abcd")) // expect: true
|
|
|
|
|
IO.print("abcd".startsWith("abcde")) // expect: false
|
2015-01-12 03:13:15 +00:00
|
|
|
IO.print("abcd".startsWith("")) // expect: true
|
2015-01-22 23:28:54 +00:00
|
|
|
|
|
|
|
|
// Non-ASCII.
|
|
|
|
|
IO.print("søméthîng".startsWith("sømé")) // expect: true
|
|
|
|
|
IO.print("søméthîng".startsWith("some")) // 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".startsWith("a")) // expect: true
|
|
|
|
|
IO.print("a\0b\0c".startsWith("a\0")) // expect: true
|
|
|
|
|
IO.print("a\0b\0c".startsWith("b\0")) // expect: false
|