first commit
This commit is contained in:
commit
5893b00dd2
1669 changed files with 1982740 additions and 0 deletions
18
libraries/FastLED/tests/test_template_magic.cpp
Normal file
18
libraries/FastLED/tests/test_template_magic.cpp
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
|
||||
// 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);
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue