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

Class-invariant is being executed after post-condition throws an AssertionError #27

Closed
BenRomberg opened this issue Jun 3, 2012 · 0 comments
Assignees
Milestone

Comments

@BenRomberg
Copy link
Member

This probably also happens if the pre-condition throws an AssertionError. The only time the class-invariant is not executed is when the method itself throws a non-AssertionError.

To sum up, the behavior should be as follows:

  • Pre-condition fails -> no further execution
  • Method fails with AssertionError -> no further execution
  • Method fails with non-AE -> execute Post-Condition
  • Post-condition fails -> no further execution
@ghost ghost assigned BenRomberg Jun 10, 2012
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

No branches or pull requests

1 participant