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

Refactor tests #135

Merged
merged 10 commits into from
Aug 20, 2023
Merged

Refactor tests #135

merged 10 commits into from
Aug 20, 2023

Conversation

facug91
Copy link
Contributor

@facug91 facug91 commented Aug 20, 2023

When I recently added EXPECT_EXCEPTION_WITH_MESSAGE and ASSERT_EXCEPTION_WITH_MESSAGE, I noticed that tests need to be defined twice, once for "expect" and once for "assert". This PR is a refactor for using the same macros for tests and then defining "expect" and "assert" accordingly. Reduce the utest.h length from 1715 lines to 1529 lines (~11% less).
I made a commit for each test to make it easier to review.

@sheredom
Copy link
Owner

This is a nice PR - I hadn't considered this, makes the library smaller, and you've been very respectful with how you proposed the change. Thanks!

@sheredom sheredom merged commit ccc887e into sheredom:master Aug 20, 2023
49 checks passed
@facug91 facug91 deleted the refactor-tests branch August 20, 2023 19:38
@facug91 facug91 restored the refactor-tests branch August 20, 2023 19:39
@facug91 facug91 deleted the refactor-tests branch August 20, 2023 20:29
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.

None yet

2 participants