Better test code

This commit is contained in:
redfast00 2021-09-15 20:23:21 +02:00
parent be0372ed94
commit 4978e4942a
No known key found for this signature in database
GPG key ID: 5946E0E34FD0553C

View file

@ -211,10 +211,8 @@ int main(int argc, char** argv)
.length = 10, .length = 10,
.enabled = true .enabled = true
}; };
std::thread t = spawn_lua_tread("print(\"hi\")\nled(0, 0, 0, 0)\ndelay(0)\nled(0, 0, 0, 0)\nprint(\"hi\")", config); std::thread t = spawn_lua_tread("while true do\nprint(\"begin\")\nled(1, 0, 0, 0)\ndelay(1000)\nled(1, 0, 255, 0)\ndelay(1000)\nprint(\"done\")\nend", config);
t.join();
httplib::Server svr; httplib::Server svr;
svr.Get("/hi", [](const httplib::Request &, httplib::Response &res) { svr.Get("/hi", [](const httplib::Request &, httplib::Response &res) {