mirror of
https://github.com/tiffany352/rink-rs
synced 2024-11-10 13:44:15 +00:00
Test 'now' and date arithmetic
This commit is contained in:
parent
9e10c6dc09
commit
e86ae5ab52
1 changed files with 5 additions and 0 deletions
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue