aboutsummaryrefslogtreecommitdiff
path: root/test-suite/tests
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2018-09-25 10:08:38 -0700
committerGitHub <noreply@github.com>2018-09-25 10:08:38 -0700
commit82b3b47eb8921dcf6eeee42fbe523fc79e45537e (patch)
tree52b7740ab46eaff37016b53a71f733dc6eba7908 /test-suite/tests
parent8181a7e645064426b43891b0f4c7fa86c2a2d154 (diff)
parent2f372b9f1079b866d633d6b5cecfaf573f3480f0 (diff)
downloadmilf-rs-82b3b47eb8921dcf6eeee42fbe523fc79e45537e.tar.gz
milf-rs-82b3b47eb8921dcf6eeee42fbe523fc79e45537e.zip
Merge pull request #261 from rhysd/fix-multiline-string-key
Fix multi-line strings are not allowed for key (#260)
Diffstat (limited to 'test-suite/tests')
-rw-r--r--test-suite/tests/parser.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/test-suite/tests/parser.rs b/test-suite/tests/parser.rs
index 2282416..2534ce6 100644
--- a/test-suite/tests/parser.rs
+++ b/test-suite/tests/parser.rs
@@ -275,6 +275,10 @@ fn bad_keys() {
"\"\"|=3".parse::<Value>().unwrap_err();
"\"\n\"|=3".parse::<Value>().unwrap_err();
"\"\r\"|=3".parse::<Value>().unwrap_err();
+ "''''''=3".parse::<Value>().unwrap_err();
+ "\"\"\"\"\"\"=3".parse::<Value>().unwrap_err();
+ "'''key'''=3".parse::<Value>().unwrap_err();
+ "\"\"\"key\"\"\"=3".parse::<Value>().unwrap_err();
}
#[test]
@@ -290,6 +294,8 @@ fn bad_table_names() {
"[']".parse::<Value>().unwrap_err();
"[''']".parse::<Value>().unwrap_err();
"['''''']".parse::<Value>().unwrap_err();
+ "['''foo''']".parse::<Value>().unwrap_err();
+ "[\"\"\"bar\"\"\"]".parse::<Value>().unwrap_err();
"['\n']".parse::<Value>().unwrap_err();
"['\r\n']".parse::<Value>().unwrap_err();
}