mirror of
https://github.com/XRPLF/clio.git
synced 2026-04-29 15:37:53 +00:00
17 lines
325 B
C++
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"); });
|
|
}
|