aboutsummaryrefslogtreecommitdiff
path: root/test-suite/tests/parser.rs
diff options
context:
space:
mode:
Diffstat (limited to 'test-suite/tests/parser.rs')
-rw-r--r--test-suite/tests/parser.rs19
1 files changed, 14 insertions, 5 deletions
diff --git a/test-suite/tests/parser.rs b/test-suite/tests/parser.rs
index eab9f5a..169df79 100644
--- a/test-suite/tests/parser.rs
+++ b/test-suite/tests/parser.rs
@@ -491,7 +491,10 @@ fn number_underscores() {
fn bad_underscores() {
bad!("foo = 0_", "invalid number at line 1 column 7");
bad!("foo = 0__0", "invalid number at line 1 column 7");
- bad!("foo = __0", "invalid number at line 1 column 7");
+ bad!(
+ "foo = __0",
+ "invalid TOML value, did you mean to use a quoted string? at line 1 column 7"
+ );
bad!("foo = 1_0_", "invalid number at line 1 column 7");
}
@@ -537,14 +540,20 @@ fn booleans() {
bad!(
"foo = true2",
- "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 = false2",
+ "invalid TOML value, did you mean to use a quoted string? at line 1 column 7"
);
- bad!("foo = false2", "invalid number at line 1 column 7");
bad!(
"foo = t1",
- "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 = f2",
+ "invalid TOML value, did you mean to use a quoted string? at line 1 column 7"
);
- bad!("foo = f2", "invalid number at line 1 column 7");
}
#[test]