Skip to content

Commit

Permalink
Fix test results
Browse files Browse the repository at this point in the history
Were simple copies, now with the real values
  • Loading branch information
Kniggebrot committed Nov 18, 2024
1 parent 5221137 commit f465771
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ccronexpr_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,8 @@ void test_expr() {
assert(check_next("0 0 1 29W * ?", "2022-02-28_00:00:00", "2022-03-29_01:00:00"));
assert(check_next("0 0 1 29W * ?", "2022-02-28_00:00:00", "2022-03-29_01:00:00"));
assert(check_next("0 0 1 1-3,29W * ?", "2024-02-28_00:00:00", "2024-02-29_01:00:00"));
assert(check_next("0 0 1 1-3,29W * ?", "2024-03-01_00:00:00", "2024-03-01_01:00:00"));
assert(check_next("0 0 1 1-3,29W * ?", "2024-03-03_00:00:00", "2024-03-03_01:00:00"));
assert(check_next("0 0 1 31W * ?", "2022-02-28_00:00:00", "2022-03-31_01:00:00"));
assert(check_next("0 0 1 31W * ?", "2022-06-17_00:00:00", "2022-07-29_01:00:00"));
assert(check_next("0 0 1 31W * ?", "2022-07-30_00:00:00", "2022-08-31_01:00:00"));
Expand All @@ -426,7 +428,8 @@ void test_expr() {
assert(check_next("0 0 1 LW * ?", "2022-10-01_00:00:00", "2022-10-31_01:00:00"));
assert(check_next("0 0 1 LW * ?", "2022-07-31_00:00:00", "2022-08-31_01:00:00"));
assert(check_next("0 0 1 LW * ?", "2022-07-30_00:00:00", "2022-08-31_01:00:00"));
assert(check_next("0 0 1 LW,L-3 * ?", "2022-07-30_00:00:00", "2022-08-31_01:00:00"));
assert(check_next("0 0 1 LW,L-3 * ?", "2022-07-30_00:00:00", "2022-08-28_01:00:00"));
assert(check_next("0 0 1 LW,L-3 * ?", "2022-08-29_00:00:00", "2022-08-31_01:00:00"));
cron_init_hash(7);
assert(check_next("H 0 H LW * ?", "2022-10-01_00:00:00", "2022-10-31_14:00:00"));
assert(check_next("0 0 1 L * ?", "2022-05-12_00:00:00", "2022-05-31_01:00:00"));
Expand Down

0 comments on commit f465771

Please sign in to comment.