aboutsummaryrefslogtreecommitdiff
path: root/test-suite/tests/de-errors.rs
diff options
context:
space:
mode:
Diffstat (limited to 'test-suite/tests/de-errors.rs')
-rw-r--r--test-suite/tests/de-errors.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/test-suite/tests/de-errors.rs b/test-suite/tests/de-errors.rs
index 7666489..656dd49 100644
--- a/test-suite/tests/de-errors.rs
+++ b/test-suite/tests/de-errors.rs
@@ -1,12 +1,12 @@
extern crate serde;
-extern crate toml;
+extern crate milf;
use serde::{de, Deserialize};
use std::fmt;
macro_rules! bad {
- ($toml:expr, $ty:ty, $msg:expr) => {
- match toml::from_str::<$ty>($toml) {
+ ($milf:expr, $ty:ty, $msg:expr) => {
+ match milf::from_str::<$ty>($milf) {
Ok(s) => panic!("parsed to: {:#?}", s),
Err(e) => assert_eq!(e.to_string(), $msg),
}
@@ -71,7 +71,7 @@ impl<'de> de::Deserialize<'de> for CasedString {
#[test]
fn custom_errors() {
- toml::from_str::<Parent<CasedString>>(
+ milf::from_str::<Parent<CasedString>>(
"
p_a = 'a'
p_b = [{c_a = 'a', c_b = 'c'}]
@@ -333,7 +333,7 @@ fn error_handles_crlf() {
a = 1\r\n\
a = 2\r\n\
",
- toml::Value,
+ milf::Value,
"duplicate key: `a` for key `t2` at line 3 column 1"
);
@@ -345,7 +345,7 @@ fn error_handles_crlf() {
a = 1\n\
a = 2\n\
",
- toml::Value,
+ milf::Value,
"duplicate key: `a` for key `t2` at line 3 column 1"
);
}