jellyfin-web/dashboard-ui/bower_components/prism/tests/languages/swift/string_feature.test
2016-02-03 18:00:01 -05:00

39 lines
644 B
Plaintext

""
"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.