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

Very basic support for Catch2 v3 #294

Merged
merged 2 commits into from
Jan 13, 2023
Merged

Very basic support for Catch2 v3 #294

merged 2 commits into from
Jan 13, 2023

Conversation

Som1Lse
Copy link
Contributor

@Som1Lse Som1Lse commented May 19, 2022

With the official release of Catch2 v3.0.1 the header structure of that library has changed, and this breaks compatibility with anyone including <rapidcheck/catch.h>, since it includes the old header.

The fix I've added is to not do anything if the user has already included the new <catch2/catch_test_macros.hpp> header. This should be compatible with any code that stays on v2.x versions of Catch2, and also compatible with anyone using the new major version of Catch2, with minor modifications, which they will have to make anyway when switching.

This does not touch any of RapidCheck's tests. The reason for this is Catch2 v3 is a C++14 library, and RapidCheck is currently a C++11 library.

Another change this pull request makes is fix a test failure introduced by #290. It fixed an instance of undefined behaviour in the library, but didn't update a test to reflect this change. This means CI should pass again (fingers crossed).

@emil-e emil-e merged commit f19e72c into emil-e:master Jan 13, 2023
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