| Index: lib/src/prism/tests/languages/swift/string_feature.test
|
| diff --git a/lib/src/prism/tests/languages/swift/string_feature.test b/lib/src/prism/tests/languages/swift/string_feature.test
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..876213ebe0be00e5cbe330a9a1ddf068db3ac353
|
| --- /dev/null
|
| +++ b/lib/src/prism/tests/languages/swift/string_feature.test
|
| @@ -0,0 +1,39 @@
|
| +""
|
| +"fo\"o"
|
| +"foo\
|
| +bar"
|
| +"foo \(42)"
|
| +"foo \(f("bar"))"
|
| +
|
| +----------------------------------------------------
|
| +
|
| +[
|
| + ["string", ["\"\""]],
|
| + ["string", ["\"fo\\\"o\""]],
|
| + ["string", ["\"foo\\\r\nbar\""]],
|
| + ["string", [
|
| + "\"foo ",
|
| + ["interpolation", [
|
| + ["delimiter", "\\("],
|
| + ["number", "42"],
|
| + ["delimiter", ")"]
|
| + ]],
|
| + "\""
|
| + ]],
|
| + ["string", [
|
| + "\"foo ",
|
| + ["interpolation", [
|
| + ["delimiter", "\\("],
|
| + ["function", "f"],
|
| + ["punctuation", "("],
|
| + ["string", ["\"bar\""]],
|
| + ["punctuation", ")"],
|
| + ["delimiter", ")"]
|
| + ]],
|
| + "\""
|
| + ]]
|
| +]
|
| +
|
| +----------------------------------------------------
|
| +
|
| +Checks for strings and string interpolation.
|
|
|