Files
arcs/arcs-sdk/modules/cpputest/tests/CppUTest/CompatabilityTests.cpp
2026-08-13 16:50:52 +08:00

27 lines
404 B
C++

#include "CppUTest/TestHarness.h"
#if CPPUTEST_USE_STD_CPP_LIB
#include <memory>
TEST_GROUP(StandardCppLibrary)
{
};
#if defined(__cplusplus) && __cplusplus >= 201402L
TEST(StandardCppLibrary, UniquePtrConversationToBool)
{
auto const aNull = std::unique_ptr<int>(NULLPTR);
CHECK_FALSE(aNull);
auto const notNull = std::make_unique<int>(1);
CHECK_TRUE(notNull);
}
#endif
#endif