aboutsummaryrefslogtreecommitdiff
path: root/test-suite/tests/datetime.rs
diff options
context:
space:
mode:
Diffstat (limited to 'test-suite/tests/datetime.rs')
-rw-r--r--test-suite/tests/datetime.rs14
1 files changed, 7 insertions, 7 deletions
diff --git a/test-suite/tests/datetime.rs b/test-suite/tests/datetime.rs
index 6c08748..729591e 100644
--- a/test-suite/tests/datetime.rs
+++ b/test-suite/tests/datetime.rs
@@ -1,10 +1,10 @@
-extern crate toml;
+extern crate milf;
use std::str::FromStr;
macro_rules! bad {
- ($toml:expr, $msg:expr) => {
- match $toml.parse::<toml::Value>() {
+ ($milf:expr, $msg:expr) => {
+ match $milf.parse::<milf::Value>() {
Ok(s) => panic!("parsed to: {:#?}", s),
Err(e) => assert_eq!(e.to_string(), $msg),
}
@@ -15,7 +15,7 @@ macro_rules! bad {
fn times() {
fn dogood(s: &str, serialized: &str) {
let to_parse = format!("foo = {}", s);
- let value = toml::Value::from_str(&to_parse).unwrap();
+ let value = milf::Value::from_str(&to_parse).unwrap();
assert_eq!(value["foo"].as_datetime().unwrap().to_string(), serialized);
}
fn good(s: &str) {
@@ -68,15 +68,15 @@ fn bad_times() {
);
bad!(
"foo = T",
- "invalid TOML value, did you mean to use a quoted string? at line 1 column 7"
+ "invalid MILF value, did you mean to use a quoted string? at line 1 column 7"
);
bad!(
"foo = T.",
- "invalid TOML value, did you mean to use a quoted string? at line 1 column 7"
+ "invalid MILF value, did you mean to use a quoted string? at line 1 column 7"
);
bad!(
"foo = TZ",
- "invalid TOML value, did you mean to use a quoted string? at line 1 column 7"
+ "invalid MILF value, did you mean to use a quoted string? at line 1 column 7"
);
bad!(
"foo = 1997-09-09T09:09:09.09+",