aboutsummaryrefslogtreecommitdiff
path: root/test-suite/tests/invalid-misc.rs
diff options
context:
space:
mode:
authorAndres Suarez <zertosh@gmail.com>2019-07-28 17:40:49 +0000
committerAndres Suarez <zertosh@gmail.com>2019-07-28 13:41:17 -0400
commit3d08775266eb1979956b03add38e6bd4824f521a (patch)
treea043f6de866915df978bf7c166b7261b3c5d6335 /test-suite/tests/invalid-misc.rs
parent2a9df8afb951592252d5319c646fdd99ec9891c3 (diff)
downloadmilf-rs-3d08775266eb1979956b03add38e6bd4824f521a.tar.gz
milf-rs-3d08775266eb1979956b03add38e6bd4824f521a.zip
Show "column" in Error messages
Diffstat (limited to 'test-suite/tests/invalid-misc.rs')
-rw-r--r--test-suite/tests/invalid-misc.rs20
1 files changed, 10 insertions, 10 deletions
diff --git a/test-suite/tests/invalid-misc.rs b/test-suite/tests/invalid-misc.rs
index a4e7740..f18012a 100644
--- a/test-suite/tests/invalid-misc.rs
+++ b/test-suite/tests/invalid-misc.rs
@@ -11,22 +11,22 @@ macro_rules! bad {
#[test]
fn bad() {
- bad!("a = 01", "invalid number at line 1");
- bad!("a = 1__1", "invalid number at line 1");
- bad!("a = 1_", "invalid number at line 1");
- bad!("''", "empty table key found at line 1");
- bad!("a = 9e99999", "invalid number at line 1");
+ bad!("a = 01", "invalid number at line 1 column 6");
+ bad!("a = 1__1", "invalid number at line 1 column 5");
+ bad!("a = 1_", "invalid number at line 1 column 5");
+ bad!("''", "empty table key found at line 1 column 1");
+ bad!("a = 9e99999", "invalid number at line 1 column 5");
bad!(
"a = \"\u{7f}\"",
- "invalid character in string: `\\u{7f}` at line 1"
+ "invalid character in string: `\\u{7f}` at line 1 column 6"
);
bad!(
"a = '\u{7f}'",
- "invalid character in string: `\\u{7f}` at line 1"
+ "invalid character in string: `\\u{7f}` at line 1 column 6"
);
- bad!("a = -0x1", "invalid number at line 1");
+ bad!("a = -0x1", "invalid number at line 1 column 5");
bad!("a = 0x-1", "failed to parse datetime for key `a`");
// Dotted keys.
@@ -39,10 +39,10 @@ fn bad() {
bad!(
"a = 1
a.b = 2",
- "dotted key attempted to extend non-table type at line 1"
+ "dotted key attempted to extend non-table type at line 1 column 5"
);
bad!(
"a = {k1 = 1, k1.name = \"joe\"}",
- "dotted key attempted to extend non-table type at line 1"
+ "dotted key attempted to extend non-table type at line 1 column 11"
);
}