You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Test "Cron matchers day of week we pass a test for 'the bug'" is failing #8
00:01 +13 -1: test/cronparse_test.dart: Cron matchers day of week we pass a test for 'the bug' [E]
Invalid argument(s): invalid cron expression: "* * *,* * SUN"
package:cronparse/src/cronparse.dart 8:7 new Cron
test/cronparse_test.dart 138:24 main.<fn>.<fn>.<fn>.<fn>
The test used the malformed expression * * *,* * SUN, which the parser rejected. It is now * * 13 * SUN asserted against 2019-11-24, a Sunday that is not the 13th, so it actually discriminates for the day-of-month/day-of-week OR rule instead of asserting something that passes either way.
Your CI suggestion is done too. .github/workflows/test.yml runs dart pub get, dart analyze --fatal-warnings, the format check, and dart test on every push to main and every pull request (#12).
Activity
nilsreichardt commentedon Jul 11, 2021
@justintout I would recommend to you to set up a GitHub action, which runs on every PR
dart test, to prevent cases this like this.Run analyze, format, and tests on every push and pull request
Credit the issue reporter and correct the matching rule in the README
Credit the issue reporter and correct the matching rule in the README
Run analyze, format, and tests on every push and pull request
justintout commentedon Sep 15, 2026
Fixed in #10, merged as 088b806 and bde8317.
The test used the malformed expression
* * *,* * SUN, which the parser rejected. It is now* * 13 * SUNasserted against 2019-11-24, a Sunday that is not the 13th, so it actually discriminates for the day-of-month/day-of-week OR rule instead of asserting something that passes either way.Your CI suggestion is done too.
.github/workflows/test.ymlrunsdart pub get,dart analyze --fatal-warnings, the format check, anddart teston every push tomainand every pull request (#12).