mirror of
https://github.com/wren-lang/wren.git
synced 2026-01-16 20:28:04 +01:00
5 lines
179 B
Plaintext
5 lines
179 B
Plaintext
IO.print("abcd".indexOf("cd")) // expect: 2
|
|
IO.print("abcd".indexOf("a")) // expect: 0
|
|
IO.print("abcd".indexOf("abcde")) // expect: -1
|
|
IO.print("abab".indexOf("ab")) // expect: 0
|