Test 'now' and date arithmetic

This commit is contained in:
Colin Benner 2018-10-05 09:05:28 +02:00
parent 9e10c6dc09
commit e86ae5ab52

View file

@ -507,3 +507,8 @@ fn test_to_timezone() {
fn test_missing_base() {
test("3 -> base", "Expected decimal base, got eof");
}
#[test]
fn test_date_difference() {
test_starts_with("now - (now - 3days)", "2 day, 23 hour, 59 minute, 59.99");
}