tests add to namespace sls (#464)

This commit is contained in:
Dhanya Thattil
2022-05-20 15:41:37 +02:00
committed by GitHub
parent c7ba79644a
commit f5745fcf18
44 changed files with 350 additions and 228 deletions

View File

@ -6,7 +6,7 @@
#include <fstream>
#include <iostream>
using sls::Logger;
namespace sls {
TEST_CASE("LogLevel to string") {
CHECK(Logger::ToString(logERROR) == "ERROR");
@ -48,4 +48,6 @@ TEST_CASE("Test output") {
auto r = local.str();
auto pos = r.find("This should be printed");
CHECK(pos != std::string::npos);
}
}
} // namespace sls