Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve upfront validation in the Static Knockout Scheduler #36

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

PeterJCLaw
Copy link
Owner

Fixes #6.

Previously there were various forms of input which wouldn't be validated, or where the input validation was implicit and resulted in unclear error messages. This changes that such that the validations are more explicit, have better messages and generally move checks upfront.

This ensures that any errors in defining a static knockout are caught
when the file is first parsed, rather than only once the league stage
has completed.

Fixes #6
Also make the types of error more distinguishable by tests.
It was already fine, this just adds test coverage.
@PeterJCLaw PeterJCLaw requested a review from prophile November 17, 2024 12:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Static knockout scheduler should validate the schedule upfront
1 participant