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,16 @@
|
||||
|
||||
// g++ --std=c++11 test.cpp
|
||||
|
||||
#include "test.h"
|
||||
|
||||
#include "fl/atomic.h"
|
||||
|
||||
TEST_CASE("atomic") {
|
||||
fl::atomic<int> atomic(0);
|
||||
atomic.store(1);
|
||||
REQUIRE(atomic.load() == 1);
|
||||
atomic.store(2);
|
||||
REQUIRE(atomic.load() == 2);
|
||||
atomic.store(3);
|
||||
REQUIRE(atomic.load() == 3);
|
||||
}
|
||||
Reference in new issue
Block a user