rcl/golden/json/string_chars.test
Ruud van Asseldonk a361630f63 Add golden for String.chars, fix bug in it
For a zero-length string, there are no characters. The final character
has to be conditional.
2023-12-27 12:48:17 +01:00

18 lines
281 B
Text

[
"".chars(),
"a".chars(),
"abc".chars(),
// The string "Z\u{00fc}rich"
"Zürich".chars(),
// The string "Zu\u{0308}rich"
"Zürich".chars(),
]
# output:
[
[],
["a"],
["a", "b", "c"],
["Z", "ü", "r", "i", "c", "h"],
["Z", "u", "̈", "r", "i", "c", "h"]
]