/********************************************************************* * \file Assert.cpp * * \author Romain BOULLARD * \date September 2026 *********************************************************************/ #include #include #ifdef BIGFOOT_NOT_OPTIMIZED #include namespace Bigfoot { using TestAssertHandler = AssertHandler; /****************************************************************************************/ TEST(AssertDeathTest, Assert_ShouldTerminateTheProcessWhenTheConditionIsFalse) { EXPECT_DEATH({ ASSERT(TestAssertHandler, false, "Something went wrong: {}", 42); }, ""); } /****************************************************************************************/ TEST(AssertDeathTest, CriticalAssert_ShouldTerminateTheProcessWhenTheConditionIsFalse) { EXPECT_DEATH({ CRITICAL_ASSERT(TestAssertHandler, false, "Something critical went wrong: {}", 42); }, ""); } } // namespace Bigfoot #endif