diff options
| author | Leitwolf11 | 2026-11-01 23:06:37 +0300 |
|---|---|---|
| committer | Leitwolf11 | 2026-11-01 23:06:37 +0300 |
| commit | a428c3bf4760f062584ca1d32d4ece6777372f17 (patch) | |
| tree | c52dedf6f10e6ec5344532ff4829a22fc4daa0b7 /tests/ExtraTests | |
| parent | e1b0a9d000645b5e914f00603983df16167bd053 (diff) | |
| parent | f6f617591cc0a6c4fd2b50999257fe902a339416 (diff) | |
| download | catch3-a428c3bf4760f062584ca1d32d4ece6777372f17.tar.gz | |
Merge devel into the release branchrelease/catch3-0.3.0.2
Diffstat (limited to 'tests/ExtraTests')
| -rw-r--r-- | tests/ExtraTests/CMakeLists.txt | 2 | ||||
| -rw-r--r-- | tests/ExtraTests/X91-AmalgamatedCatch.cpp | 6 |
2 files changed, 7 insertions, 1 deletions
diff --git a/tests/ExtraTests/CMakeLists.txt b/tests/ExtraTests/CMakeLists.txt index 232b86dc..a9d9a316 100644 --- a/tests/ExtraTests/CMakeLists.txt +++ b/tests/ExtraTests/CMakeLists.txt @@ -436,7 +436,7 @@ target_compile_features(AmalgamatedTestCompilation PRIVATE cxx_std_17) add_test(NAME AmalgamatedFileTest COMMAND AmalgamatedTestCompilation --no-history) set_tests_properties(AmalgamatedFileTest PROPERTIES - PASS_REGULAR_EXPRESSION "3 test\\(s\\): 3 passed[\r\n]+14 assertion\\(s\\)" + PASS_REGULAR_EXPRESSION "4 test\\(s\\): 4 passed[\r\n]+16 assertion\\(s\\)" ) add_executable(ThreadSafetyTests diff --git a/tests/ExtraTests/X91-AmalgamatedCatch.cpp b/tests/ExtraTests/X91-AmalgamatedCatch.cpp index 78d45a2c..857c5807 100644 --- a/tests/ExtraTests/X91-AmalgamatedCatch.cpp +++ b/tests/ExtraTests/X91-AmalgamatedCatch.cpp @@ -27,6 +27,12 @@ TEST_CASE("Just a dummy test") { })); } +TEST_CASE("Mocks are in the amalgamated files") { + CATCH3_MOCK_FUNCTION(twice, int(int)); + CATCH3_EXPECT_CALL(twice)(2).Returns(4); + CHECK(twice(2) == 4); +} + TEMPLATE_TEST_CASE("Trivial template test case", "", char, short) { STATIC_REQUIRE(sizeof(TestType) <= sizeof(int)); } |