18 lines
478 B
C++
18 lines
478 B
C++
/*
|
|
* SPDX-FileCopyrightText: 2024 M5Stack Technology CO LTD
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*/
|
|
/*
|
|
UnitTest for M5Utility
|
|
*/
|
|
#ifndef TEST_HEKPER_HPP
|
|
#define TEST_HEKPER_HPP
|
|
|
|
// catch2 STATIC_REQUIRE
|
|
#define STATIC_EXPECT_TRUE(constexpr_cond) \
|
|
do { \
|
|
static_assert((constexpr_cond), "Occurrence of compile-time assertion"); \
|
|
} while (0)
|
|
|
|
#endif
|