summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authordfhoughton <dfhoughton@gmail.com>2019-06-30 13:23:41 -0400
committerdfhoughton <dfhoughton@gmail.com>2019-06-30 13:23:41 -0400
commitf9ce85e4497669ceb235865dfe6daff9e3cf5729 (patch)
treec0257127018d84f5147c4939258b534f42495373 /tests
parente3df19074be7c5f4a175b415291434048eb811e1 (diff)
downloadtwo-timer-f9ce85e4497669ceb235865dfe6daff9e3cf5729.zip
added parsable function
Diffstat (limited to 'tests')
-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);