string_feature.test
444 Bytes
""
''
"f\"oo"
'b\'ar'
"foo\
bar"
'foo\
bar'
----------------------------------------------------
[
["string", "\"\""],
["string", "''"],
["string", "\"f\\\"oo\""],
["string", "'b\\'ar'"],
["string", "\"foo\\\r\nbar\""],
["string", "'foo\\\r\nbar'"]
]
----------------------------------------------------
Checks for empty strings, single-line strings and
multi-line strings, both single-quoted and double-quoted.