add some tests for LuaAPI FS, termios

This commit is contained in:
Lion Kortlepel
2022-05-26 13:33:08 +02:00
parent 00f156cb86
commit 28c43a51ee
3 changed files with 126 additions and 4 deletions

View File

@@ -142,6 +142,12 @@ std::string Http::Status::ToString(int Code) {
}
}
TEST_CASE("Http::Status::ToString") {
CHECK(Http::Status::ToString(200) == "OK");
CHECK(Http::Status::ToString(696969) == "696969");
CHECK(Http::Status::ToString(-1) == "Invalid Response Code");
}
Http::Server::THttpServerInstance::THttpServerInstance() {
Application::SetSubsystemStatus("HTTPServer", Application::Status::Starting);
mThread = std::thread(&Http::Server::THttpServerInstance::operator(), this);