test: add non-ASCII UTF-8 test cases for contains, endsWith, equality, indexOf, and startsWith string methods
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
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
|
||||
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
|
||||
Reference in New Issue
Block a user