v1.4实现机器人一起踢乒乓球功能,使用maixcam,离线运行。
This commit is contained in:
1 parent
9d3aa2684b
commit
ce8dc19088
1854 files changed
+14918
-23
No files matched your search
@@ -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);
|
||||
}
|
||||
Reference in new issue
Block a user