aboutsummaryrefslogtreecommitdiff
path: root/test-suite/tests/datetime.rs
diff options
context:
space:
mode:
authorAlex Tokarev <aleksator@gmail.com>2020-10-11 20:30:55 +0300
committerGitHub <noreply@github.com>2020-10-11 12:30:55 -0500
commitc74293f7a87cea3ce60a4df1c905501d4b749067 (patch)
tree60b020ad5cd7ce36bcd90e6660b8ba2a6a3b0d45 /test-suite/tests/datetime.rs
parent940fcf9e183ab4f29204ef4f3ea92c01de8cc08a (diff)
downloadmilf-rs-c74293f7a87cea3ce60a4df1c905501d4b749067.tar.gz
milf-rs-c74293f7a87cea3ce60a4df1c905501d4b749067.zip
Improve error message when parsing unquoted string (#385)
* Improve error message when parsing unquoted string * Remove conversion to lowercase in parse_keylike() Converting keys to lowercase goes against TOML specification for floats. * Change error message for unquoted string
Diffstat (limited to 'test-suite/tests/datetime.rs')
-rw-r--r--test-suite/tests/datetime.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/test-suite/tests/datetime.rs b/test-suite/tests/datetime.rs
index 74b5939..6c08748 100644
--- a/test-suite/tests/datetime.rs
+++ b/test-suite/tests/datetime.rs
@@ -68,15 +68,15 @@ fn bad_times() {
);
bad!(
"foo = T",
- "failed to parse datetime for key `foo` at line 1 column 7"
+ "invalid TOML value, did you mean to use a quoted string? at line 1 column 7"
);
bad!(
"foo = T.",
- "expected newline, found a period at line 1 column 8"
+ "invalid TOML value, did you mean to use a quoted string? at line 1 column 7"
);
bad!(
"foo = TZ",
- "failed to parse datetime for key `foo` at line 1 column 7"
+ "invalid TOML value, did you mean to use a quoted string? at line 1 column 7"
);
bad!(
"foo = 1997-09-09T09:09:09.09+",