summaryrefslogtreecommitdiff
path: root/src/utils/checkutils_unittest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/checkutils_unittest.cc')
-rw-r--r--src/utils/checkutils_unittest.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/utils/checkutils_unittest.cc b/src/utils/checkutils_unittest.cc
index 2e98daf47..a9b2db798 100644
--- a/src/utils/checkutils_unittest.cc
+++ b/src/utils/checkutils_unittest.cc
@@ -43,5 +43,17 @@ TEST_CASE("CheckUtils")
REQUIRE(reportTrue(true) == true);
}
+ SECTION("failFalse")
+ {
+ REQUIRE_THROWS(failFalse(false) == false);
+ REQUIRE(failFalse(true) == true);
+ }
+
+ SECTION("failTrue")
+ {
+ REQUIRE(failTrue(false) == false);
+ REQUIRE_THROWS(failTrue(true) == true);
+ }
+
delete2(logger);
}