diff options
Diffstat (limited to 'tests/datetime.scm')
-rw-r--r-- | tests/datetime.scm | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/datetime.scm b/tests/datetime.scm index eb9c02b6..6da385e2 100644 --- a/tests/datetime.scm +++ b/tests/datetime.scm @@ -15,6 +15,7 @@ leap-year? string->date string->time string->datetime parse-month + days-in-interval ) ((ice-9 format) format) ((hnh util) let*) @@ -239,3 +240,7 @@ (test-equal -1 (parse-month "inv" en_US)) (test-equal 5 (parse-month "mAJ" sv_SE)) + + +(test-equal "Days in regular year" 365 (days-in-interval #2021-01-01 #2021-12-31)) +(test-equal "Days in leap year" 366 (days-in-interval #2020-01-01 #2020-12-31)) |