From f9ce85e4497669ceb235865dfe6daff9e3cf5729 Mon Sep 17 00:00:00 2001 From: dfhoughton Date: Sun, 30 Jun 2019 13:23:41 -0400 Subject: added parsable function --- tests/tests.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'tests') 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}; @@ -10,6 +10,11 @@ fn show_me(p: &str) { println!("{}", two_timer::MATCHER.parse(p).unwrap()); } +#[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); -- cgit v1.2.3