rcl/golden/json/fstring.test
2024-01-30 21:22:44 +01:00

17 lines
399 B
Text

[
// Two parts, no inner fragment.
f"Interpolated string: {"hello, world"}",
// Three parts, one inner fragment.
f"Begin {"hole1"} inner {"hole2"} end.",
// With integers, booleans, and null inside.
f"Bool: {not false}, integer: {21 + 21}, null: {null}",
]
# output:
[
"Interpolated string: hello, world",
"Begin hole1 inner hole2 end.",
"Bool: true, integer: 42, null: null"
]