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

Add assertions #2

Merged
merged 1 commit into from
Sep 12, 2022
Merged

Add assertions #2

merged 1 commit into from
Sep 12, 2022

Conversation

tensaida
Copy link
Owner

The Deadline and Event constructors make certain assumptions about the format of the parameters.

In the future, changes to the Parser class may make the Deadline and Event classes behave unexpectedly.

Let's use assertions to make sure the parameters are in the correct format.

Using assertions allows us to document important assumptions that should hold true for the parameters in the constructors.

The Deadline and Event constructors make certain assumptions about the format of the parameters.

In the future, changes to the Parser class may make the Deadline and Event classes behave unexpectedly.

Let's use assertions to make sure the parameters are in the correct format.

Using assertions allows us to document important assumptions that should hold true for the parameters in the constructors.
@tensaida tensaida merged commit 65b6518 into master Sep 12, 2022
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.

1 participant