first commit
This commit is contained in:
commit
5893b00dd2
1669 changed files with 1982740 additions and 0 deletions
20
libraries/FastLED/tests/test_dbg.cpp
Normal file
20
libraries/FastLED/tests/test_dbg.cpp
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
|
||||
// g++ --std=c++11 test.cpp
|
||||
|
||||
#include "test.h"
|
||||
|
||||
#include "test.h"
|
||||
#include "fl/dbg.h"
|
||||
|
||||
#include "fl/namespace.h"
|
||||
|
||||
using namespace fl;
|
||||
|
||||
TEST_CASE("fastled_file_offset") {
|
||||
const char* src = "src/fl/dbg.h";
|
||||
const char* result = fastled_file_offset(src);
|
||||
CHECK(strcmp(result, "src/fl/dbg.h") == 0);
|
||||
const char* src2 = "blah/blah/blah.h";
|
||||
const char* result2 = fastled_file_offset(src2);
|
||||
CHECK(strcmp(result2, "blah.h") == 0);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue