summaryrefslogtreecommitdiff
path: root/tests/tests.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/tests.rs')
-rw-r--r--tests/tests.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/tests.rs b/tests/tests.rs
index 902cce3..17acb23 100644
--- a/tests/tests.rs
+++ b/tests/tests.rs
@@ -1,6 +1,6 @@
#![feature(test)]
extern crate two_timer;
-use two_timer::{parse, Config};
+use two_timer::{parse, parsable, Config};
extern crate chrono;
use chrono::naive::NaiveDate;
use chrono::{Duration, Local};
@@ -11,6 +11,11 @@ fn show_me(p: &str) {
}
#[test]
+fn can_use_parsable() {
+ assert!(parsable("2019/1/1"));
+}
+
+#[test]
fn always() {
let alpha = chrono::naive::MIN_DATE.and_hms_milli(0, 0, 0, 0);
let omega = chrono::naive::MAX_DATE.and_hms_milli(23, 59, 59, 999);