Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/tests/ExtraTests/X91-AmalgamatedCatch.cpp
diff options
context:
space:
mode:
authorLeitwolf112026-11-01 23:06:37 +0300
committerLeitwolf112026-11-01 23:06:37 +0300
commita428c3bf4760f062584ca1d32d4ece6777372f17 (patch)
treec52dedf6f10e6ec5344532ff4829a22fc4daa0b7 /tests/ExtraTests/X91-AmalgamatedCatch.cpp
parente1b0a9d000645b5e914f00603983df16167bd053 (diff)
parentf6f617591cc0a6c4fd2b50999257fe902a339416 (diff)
downloadcatch3-release/catch3-0.3.0.2.tar.gz
Merge devel into the release branchrelease/catch3-0.3.0.2
Diffstat (limited to 'tests/ExtraTests/X91-AmalgamatedCatch.cpp')
-rw-r--r--tests/ExtraTests/X91-AmalgamatedCatch.cpp6
1 files changed, 6 insertions, 0 deletions
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));
}