aboutsummaryrefslogtreecommitdiff
path: root/test-suite/tests/datetime.rs
diff options
context:
space:
mode:
authorMelody Horn <melody@boringcactus.com>2021-03-21 14:10:24 -0600
committerMelody Horn <melody@boringcactus.com>2021-03-21 14:10:24 -0600
commit7bbbfd046324363c8db1fb15d39aeb02fe7331b5 (patch)
treea416bb991c23e083d0b5816dfc8b00cd1aceda78 /test-suite/tests/datetime.rs
parentb1417006df376e6c406bff43740dd11aa7ef744e (diff)
downloadmilf-rs-main.tar.gz
milf-rs-main.zip
hilarious and original jokeHEADmain
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+",