added some tests

This commit is contained in:
Bob Polis 2020-04-29 17:08:16 +02:00
parent d64dd9790b
commit fc65a743eb

View File

@ -60,8 +60,12 @@ int main(int argc, const char * argv[]) {
} }
std::cout << "hello, tester\n"; std::cout << "hello, tester\n";
sc::logger logger("tester", sc::loglevel::debug); sc::logger logger("tester", sc::loglevel::debug);
_info(logger, 42, " = ", 6, " x ", 7);
_debug(logger, "efkes proberen"); _debug(logger, "efkes proberen");
_info(logger, 42, " = ", 6, " x ", 7);
_warning(logger, "laatste waarschuwing");
_error(logger, "foutje, bedankt");
_critical(logger, "meltdown imminent");
_info(logger, "");
} catch (const std::exception& ex) { } catch (const std::exception& ex) {
std::cerr << "tester: " << ex.what() << '\n'; std::cerr << "tester: " << ex.what() << '\n';
return EXIT_FAILURE; return EXIT_FAILURE;