8000 Add Assertions to taskList related methods by Rachelcoll · Pull Request #1 · Rachelcoll/ip · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add Assertions to taskList related methods #1

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

Merged
merged 1 commit into from
Sep 11, 2024

Conversation

Rachelcoll
Copy link
Owner

Sometimes we may want to check if the method that calls taskList method successfully manipulates the list inside the taskList.

In some cases programmer may forget to add new Task to the list when writing methods for a new type of class.

Adding assertions to these methods can verify assumptions about Internal Invariants, Control-Flow Invariants, Preconditions, Post conditions, and Class Invariants.

Assertions will remind the possible flaw in the terminal if it's asserted to be false.

Sometimes we may want to check if the method that calls taskList method
successfully manipulates the list inside the taskList.

In some cases programmer may forget to add new Task to the list when
writing methods for a new type of class.

Adding assertions to these methods can
verify assumptions about Internal
Invariants, Control-Flow Invariants, Preconditions, Post conditions, and
Class Invariants.

Assertions will remind the possible flaw in the terminal if it's asserted
to be false.
@Rachelcoll Rachelcoll merged commit 525e2ef into master Sep 11, 2024
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
0