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
|