aboutsummaryrefslogtreecommitdiff
path: root/test-suite/tests/invalid-misc.rs
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2019-08-12 15:35:35 -0500
committerGitHub <noreply@github.com>2019-08-12 15:35:35 -0500
commit72881c2a06f9c51377d8a13f7d6bd0be36171b55 (patch)
treedfed9914f8deb222d3204cfb494d6695fe786ea9 /test-suite/tests/invalid-misc.rs
parentfa9740540f7a13675b578d6cde84d65aeb03e0b5 (diff)
parent144e1d0f90f3e83e7e3cf0764869c2bbef687397 (diff)
downloadmilf-rs-72881c2a06f9c51377d8a13f7d6bd0be36171b55.tar.gz
milf-rs-72881c2a06f9c51377d8a13f7d6bd0be36171b55.zip
Merge pull request #314 from zertosh/add-line-and-col-to-errors
Add line and column to all Errors
Diffstat (limited to 'test-suite/tests/invalid-misc.rs')
-rw-r--r--test-suite/tests/invalid-misc.rs7
1 files changed, 5 insertions, 2 deletions
diff --git a/test-suite/tests/invalid-misc.rs b/test-suite/tests/invalid-misc.rs
index f18012a..cea0801 100644
--- a/test-suite/tests/invalid-misc.rs
+++ b/test-suite/tests/invalid-misc.rs
@@ -27,14 +27,17 @@ fn bad() {
);
bad!("a = -0x1", "invalid number at line 1 column 5");
- bad!("a = 0x-1", "failed to parse datetime for key `a`");
+ bad!(
+ "a = 0x-1",
+ "failed to parse datetime for key `a` at line 1 column 5"
+ );
// Dotted keys.
bad!(
"a.b.c = 1
a.b = 2
",
- "duplicate key: `b` for key `a`"
+ "duplicate key: `b` for key `a` at line 1 column 9"
);
bad!(
"a = 1