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

fix CHECK_EQUAL #1921

Merged
merged 1 commit into from
Dec 8, 2024
Merged

fix CHECK_EQUAL #1921

merged 1 commit into from
Dec 8, 2024

Conversation

truher
Copy link
Contributor

@truher truher commented Dec 8, 2024

Previously, CHECK_EQUAL returned upon success, skipping the rest of the test. :-)

Copy link
Collaborator

@varunagrawal varunagrawal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Brilliant catch!!

@varunagrawal
Copy link
Collaborator

@dellaert tagging for visibility. Can confirm this was an issue that this PR fixes.

@varunagrawal varunagrawal merged commit c93f752 into borglab:develop Dec 8, 2024
33 checks passed
@truher truher deleted the team100_testfix branch December 8, 2024 18:32
@dellaert
Copy link
Member

dellaert commented Dec 9, 2024

Wait a minute :-) this is expected behavior: CHECK exits immediately, EXPECT continues, no?

@truher
Copy link
Contributor Author

truher commented Dec 9, 2024

oh yeah, that's true. previously CHECK_EQUAL would return upon success which is never right. my version isn't right either.

ha ha, apparently Michael Feathers noticed the same thing:

http://wiki.c2.com/?CppUnitLite

@truher truher mentioned this pull request Dec 9, 2024
@truher
Copy link
Contributor Author

truher commented Dec 9, 2024

see #1923

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.

3 participants