File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6666 (is (not (scheduled-for? task (d/date 2022 2 1 ))))
6767 (is (not (scheduled-for? task (d/date 2023 1 27 )))))
6868
69+ (deftest scheduled-for-last-day-of-month
70+ (def task (task/build-scheduled-task " Review logs" " every last day" ))
71+ (is (scheduled-for? task (d/date 2022 1 31 )))
72+ (is (scheduled-for? task (d/date 2022 2 28 )))
73+ (is (scheduled-for? task (d/date 2022 3 31 )))
74+ (is (scheduled-for? task (d/date 2022 4 30 )))
75+ (is (scheduled-for? task (d/date 2022 5 31 )))
76+ (is (scheduled-for? task (d/date 2022 6 30 )))
77+ (is (scheduled-for? task (d/date 2022 7 31 )))
78+ (is (scheduled-for? task (d/date 2022 8 31 )))
79+ (is (scheduled-for? task (d/date 2022 9 30 )))
80+ (is (scheduled-for? task (d/date 2022 10 31 )))
81+ (is (scheduled-for? task (d/date 2022 11 30 )))
82+ (is (scheduled-for? task (d/date 2022 12 31 )))
83+ (is (scheduled-for? task (d/date 2023 1 31 )))
84+ (is (not (scheduled-for? task (d/date 2022 1 30 )))))
85+
6986# # —————————————————————————————————————————————————————————————————————————————————————————————————
7087# # Test missed?
7188
You can’t perform that action at this time.
0 commit comments