diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2023-07-20 19:33:54 +0200 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2023-07-20 19:34:54 +0200 |
commit | e8fd988a7ec39d0a7c60a6300b34865bbccec4a0 (patch) | |
tree | e240c2541f2681e17d27dc2a62e9db82bca7bfbf /tests | |
parent | e4f33550380e57390c0baee975cd5d5c20be41ba (diff) |
Fix test for fixed error message in rust-ini
In
https://github.com/zonyitoo/rust-ini/pull/95
the reported line and column was fixed in rust-ini. This patch adapts
for this change.
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/file_ini.rs | 2 | ||||
-rw-r--r-- | tests/legacy/file_ini.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/file_ini.rs b/tests/file_ini.rs index e7f369a..7561bff 100644 --- a/tests/file_ini.rs +++ b/tests/file_ini.rs @@ -61,7 +61,7 @@ fn test_error_parse() { assert_eq!( res.unwrap_err().to_string(), format!( - r#"2:0 expecting "[Some('='), Some(':')]" but found EOF. in {}"#, + r#"3:1 expecting "[Some('='), Some(':')]" but found EOF. in {}"#, path.display() ) ); diff --git a/tests/legacy/file_ini.rs b/tests/legacy/file_ini.rs index 5cbf63d..c330ef2 100644 --- a/tests/legacy/file_ini.rs +++ b/tests/legacy/file_ini.rs @@ -59,7 +59,7 @@ fn test_error_parse() { assert_eq!( res.unwrap_err().to_string(), format!( - r#"2:0 expecting "[Some('='), Some(':')]" but found EOF. in {}"#, + r#"3:1 expecting "[Some('='), Some(':')]" but found EOF. in {}"#, path.display() ) ); |