Skip to content

Commit 21f0984

Browse files
committed
days of week
1 parent 6302266 commit 21f0984

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

test/java_time_test.clj

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -509,8 +509,19 @@
509509
(is (not (j/not-before? fc fc+1000)))))
510510

511511
(testing "fields"
512-
(is (j/after? (j/day-of-week :saturday) :thursday))
513-
(is (j/before? (j/day-of-week :saturday) :sunday))
512+
(let [thursday (j/day-of-week :thursday)
513+
saturday (j/day-of-week :saturday)
514+
sunday (j/day-of-week :sunday)]
515+
(is (j/after? saturday thursday))
516+
(is (not (j/after? thursday saturday)))
517+
(is (j/before? saturday sunday))
518+
(is (not (j/before? sunday saturday)))
519+
(is (j/not-after? saturday saturday))
520+
(is (j/not-after? saturday sunday))
521+
(is (not (j/not-after? sunday saturday)))
522+
(is (j/not-before? saturday saturday))
523+
(is (j/not-before? sunday saturday))
524+
(is (not (j/not-before? saturday sunday))))
514525

515526
(is (j/after? (j/month :february) :january))
516527
(is (j/before? (j/month :february) :march))

0 commit comments

Comments
 (0)