prism/tests/languages/cmake/string_feature.test

49 lines
816 B
Plaintext

"This is a string"
"This is
multi
line
string"
"${VAR}with${BAR}"
"${FOO} with ${BAR}"
----------------------------------------------------
[
["string", ["\"This is a string\""]],
["string", ["\"This is \r\nmulti\r\nline\r\nstring\""]],
["string", [
"\"",
["interpolation", [
["punctuation", "${"],
["variable", "VAR"],
["punctuation", "}"]
]],
"with",
["interpolation", [
["punctuation", "${"],
["variable", "BAR"],
["punctuation", "}"]
]],
"\""
]],
["string", [
"\"",
["interpolation", [
["punctuation", "${"],
["variable", "FOO"],
["punctuation", "}"]
]],
" with ",
["interpolation", [
["punctuation", "${"],
["variable", "BAR"],
["punctuation", "}"]
]],
"\""
]]
]
----------------------------------------------------
Checks for strings.