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
caa504da6a
commit
7c35cbc9f0
1 changed files with 5 additions and 0 deletions
|
@ -498,3 +498,8 @@ fn test_to_timezone() {
|
||||||
fn test_missing_base() {
|
fn test_missing_base() {
|
||||||
test("3 -> base", "Expected decimal base, got eof");
|
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