mirror of
https://github.com/wren-lang/wren.git
synced 2026-01-11 22:28:45 +01:00
Mainly to get rid of one top level directory. But this will also be useful when there are tests of the embedding API.
9 lines
246 B
Plaintext
9 lines
246 B
Plaintext
IO.print("".count) // expect: 0
|
|
IO.print("a string".count) // expect: 8
|
|
|
|
// 8-bit clean.
|
|
IO.print("\0".count) // expect: 1
|
|
IO.print("a\0b".count) // expect: 3
|
|
IO.print("\0c".count) // expect: 2
|
|
IO.print(("a\0b" + "\0c").count) // expect: 5
|