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
|