aboutsummaryrefslogtreecommitdiff
path: root/test-suite
diff options
context:
space:
mode:
authorJoey Hain <hain.joseph@gmail.com>2018-10-27 12:41:52 -0700
committerJoey Hain <hain.joseph@gmail.com>2018-10-27 12:49:17 -0700
commit94c95bd15e63520fc2844ffb1bc387d1bc9c79ae (patch)
treeab9aae664e155c8a012d09b3b541202735e7ebe3 /test-suite
parent3aec5a918a6cb39fa32e8a56725a3c2fc0ed6bc2 (diff)
downloadmilf-rs-94c95bd15e63520fc2844ffb1bc387d1bc9c79ae.tar.gz
milf-rs-94c95bd15e63520fc2844ffb1bc387d1bc9c79ae.zip
Allow whitespace after line ending backslash (#162)
Diffstat (limited to 'test-suite')
-rw-r--r--test-suite/tests/invalid/string-bad-line-ending-escape.toml3
-rw-r--r--test-suite/tests/valid/multiline-string.json8
-rw-r--r--test-suite/tests/valid/multiline-string.toml11
3 files changed, 22 insertions, 0 deletions
diff --git a/test-suite/tests/invalid/string-bad-line-ending-escape.toml b/test-suite/tests/invalid/string-bad-line-ending-escape.toml
new file mode 100644
index 0000000..32e2c48
--- /dev/null
+++ b/test-suite/tests/invalid/string-bad-line-ending-escape.toml
@@ -0,0 +1,3 @@
+invalid-escape = """\
+ This string has a non whitespace-character after the line ending escape. \ a
+"""
diff --git a/test-suite/tests/valid/multiline-string.json b/test-suite/tests/valid/multiline-string.json
index 075bf50..3223bae 100644
--- a/test-suite/tests/valid/multiline-string.json
+++ b/test-suite/tests/valid/multiline-string.json
@@ -15,6 +15,10 @@
"type": "string",
"value": ""
},
+ "multiline_empty_five": {
+ "type": "string",
+ "value": ""
+ },
"equivalent_one": {
"type": "string",
"value": "The quick brown fox jumps over the lazy dog."
@@ -26,5 +30,9 @@
"equivalent_three": {
"type": "string",
"value": "The quick brown fox jumps over the lazy dog."
+ },
+ "equivalent_four": {
+ "type": "string",
+ "value": "The quick brown fox jumps over the lazy dog."
}
}
diff --git a/test-suite/tests/valid/multiline-string.toml b/test-suite/tests/valid/multiline-string.toml
index 15b1143..2c4237f 100644
--- a/test-suite/tests/valid/multiline-string.toml
+++ b/test-suite/tests/valid/multiline-string.toml
@@ -7,6 +7,11 @@ multiline_empty_four = """\
\
\
"""
+multiline_empty_five = """\
+ \
+ \
+ \
+ """
equivalent_one = "The quick brown fox jumps over the lazy dog."
equivalent_two = """
@@ -21,3 +26,9 @@ equivalent_three = """\
fox jumps over \
the lazy dog.\
"""
+
+equivalent_four = """\
+ The quick brown \
+ fox jumps over \
+ the lazy dog.\
+ """