Files
clio/tests/unit/util/AssertTests.cpp
2026-03-24 15:25:32 +00:00

17 lines
325 B
C++

#include "util/Assert.hpp"
#include "util/MockAssert.hpp"
#include <gtest/gtest.h>
struct AssertTest : common::util::WithMockAssert {};
TEST_F(AssertTest, assertTrue)
{
EXPECT_NO_THROW(ASSERT(true, "Should not fail"));
}
TEST_F(AssertTest, assertFalse)
{
EXPECT_CLIO_ASSERT_FAIL({ ASSERT(false, "failure"); });
}