-
Notifications
You must be signed in to change notification settings - Fork 372
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
maint: Use Catch2 instead of doctest (#3618)
- Loading branch information
1 parent
633d8d0
commit c3a2c1c
Showing
90 changed files
with
6,330 additions
and
6,284 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
#define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN | ||
#define CATCH_CONFIG_MAIN | ||
|
||
#include <doctest/doctest.h> | ||
#include <catch2/catch_all.hpp> |
22 changes: 22 additions & 0 deletions
22
libmamba/ext/solv-cpp/tests/src/msvc_catch_string_view.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#ifdef _WIN32 | ||
|
||
// Catch compiled on `conda-forge` for MSVC doesn't support outputting `string_view`. | ||
// So we have to define StringMaker for it ourselves. | ||
// The declaration is present though, so this only causes link errors. | ||
|
||
#include <string> | ||
#include <string_view> | ||
|
||
#include <catch2/catch_tostring.hpp> | ||
|
||
namespace Catch | ||
{ | ||
|
||
std::string StringMaker<std::string_view>::convert(std::string_view str) | ||
{ | ||
return std::string(str); | ||
} | ||
|
||
} | ||
|
||
#endif |
Oops, something went wrong.