aboutsummaryrefslogtreecommitdiff
path: root/test-suite/tests/float.rs
diff options
context:
space:
mode:
Diffstat (limited to 'test-suite/tests/float.rs')
-rw-r--r--test-suite/tests/float.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/test-suite/tests/float.rs b/test-suite/tests/float.rs
index 66414ea..0b639dc 100644
--- a/test-suite/tests/float.rs
+++ b/test-suite/tests/float.rs
@@ -1,8 +1,8 @@
-extern crate toml;
+extern crate milf;
#[macro_use]
extern crate serde_derive;
-use toml::Value;
+use milf::Value;
#[rustfmt::skip] // appears to be a bug in rustfmt to make this converge...
macro_rules! float_inf_tests {
@@ -18,7 +18,7 @@ macro_rules! float_inf_tests {
sf7: $ty,
sf8: $ty,
}
- let inf: S = toml::from_str(
+ let inf: S = milf::from_str(
r"
# infinity
sf1 = inf # positive infinity
@@ -56,7 +56,7 @@ macro_rules! float_inf_tests {
assert_eq!(inf.sf8, 0.0);
assert!(inf.sf8.is_sign_negative());
- let s = toml::to_string(&inf).unwrap();
+ let s = milf::to_string(&inf).unwrap();
assert_eq!(
s,
"\
@@ -71,7 +71,7 @@ sf8 = -0.0
"
);
- toml::from_str::<Value>(&s).expect("roundtrip");
+ milf::from_str::<Value>(&s).expect("roundtrip");
}};
}