summaryrefslogtreecommitdiffstats
path: root/tests/legacy/errors.rs
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2023-02-02 08:48:16 +0100
committerMatthias Beyer <mail@beyermatthias.de>2023-02-02 08:51:34 +0100
commit53c8008d04171d9746f6af5d293b2eee317f24fc (patch)
treedc362b84870fbd83977048a13ea00c04806f2be9 /tests/legacy/errors.rs
parent88fe5b032517b7e7ed731de67a7191bfa896bafe (diff)
Fix test for error string
This patch fixes the error test for parsing invalid TOML. When we updated toml-rs to 0.7.0, the error display string was altered. Thus we had to adapt the tests for that string. The legacy tests were removed as they are equal to the "non-legacy" tests. No need to keep them both. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'tests/legacy/errors.rs')
-rw-r--r--tests/legacy/errors.rs17
1 files changed, 0 insertions, 17 deletions
diff --git a/tests/legacy/errors.rs b/tests/legacy/errors.rs
index e0835f5..191e85e 100644
--- a/tests/legacy/errors.rs
+++ b/tests/legacy/errors.rs
@@ -15,23 +15,6 @@ fn make() -> Config {
}
#[test]
-fn test_error_parse() {
- let mut c = Config::default();
- let res = c.merge(File::new("tests/Settings-invalid", FileFormat::Toml));
-
- let path: PathBuf = ["tests", "Settings-invalid.toml"].iter().collect();
-
- assert!(res.is_err());
- assert_eq!(
- res.unwrap_err().to_string(),
- format!(
- "invalid TOML value, did you mean to use a quoted string? at line 2 column 9 in {}",
- path.display()
- )
- );
-}
-
-#[test]
fn test_error_type() {
let c = make();