jellyfin-web/dashboard-ui/bower_components/prism/tests/languages/swift/string_feature.test

39 lines
644 B
Plaintext
Raw Normal View History

2016-02-02 19:12:02 -07:00
""
"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.