Skip to content

Commit 5ee4069

Browse files
committed
months
1 parent 21f0984 commit 5ee4069

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

test/java_time_test.clj

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -522,9 +522,20 @@
522522
(is (j/not-before? saturday saturday))
523523
(is (j/not-before? sunday saturday))
524524
(is (not (j/not-before? saturday sunday))))
525-
526-
(is (j/after? (j/month :february) :january))
527-
(is (j/before? (j/month :february) :march))
525+
526+
(let [january (j/month :january)
527+
february (j/month :february)
528+
march (j/month :march)]
529+
(is (j/after? february january))
530+
(is (not (j/after? january february)))
531+
(is (j/before? february march))
532+
(is (not (j/before? march february)))
533+
(is (j/not-after? january january))
534+
(is (j/not-after? february march))
535+
(is (not (j/not-after? march february)))
536+
(is (j/not-before? january january))
537+
(is (j/not-before? february january))
538+
(is (not (j/not-before? january february))))
528539

529540
(is (j/after? (j/year 2010) 2009))
530541
(is (j/before? (j/year 2010) 2011))

0 commit comments

Comments
 (0)