tests add to namespace sls (#466)

* tests add to namespace sls

* fixed for tests

* finish up namespace sls for tests
This commit is contained in:
Dhanya Thattil
2022-05-23 16:17:32 +02:00
committed by GitHub
parent 8656eeec25
commit d61741c28b
44 changed files with 360 additions and 236 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