Test fractional seconds

This commit is contained in:
Colin Benner 2018-10-04 11:04:32 +02:00
parent 77cfd49454
commit ec3bc1273e

View file

@ -430,8 +430,8 @@ fn test_underscores_in_number() {
#[test]
fn test_date_input() {
let input = "#2018-10-04T09:13:25 +2:00#";
let expected = "2018-10-04 11:13:25 +02:00";
let input = "#2018-10-04T09:13:25.123 +2:00#";
let expected = "2018-10-04 11:13:25.123 +02:00";
let mut iter = text_query::TokenIterator::new(input.trim()).peekable();
let expr = text_query::parse_query(&mut iter);