sTodo-m5paper-client/libraries/FastLED/tests/test_template_magic.cpp
2025-06-30 20:47:33 +02:00

18 lines
329 B
C++

// g++ --std=c++11 test.cpp
#include "test.h"
#include "test.h"
#include "fl/template_magic.h"
#include "fl/namespace.h"
#include <type_traits>
class Base {};
class Derived : public Base {};
TEST_CASE("is_base_of") {
CHECK(fl::is_base_of<Base, Derived>::value);
CHECK_FALSE(fl::is_base_of<Derived, Base>::value);
}