~singpolyma/biboumi

bd8a5a505edc07e207efb418542b384eddfa4504 — Florent Le Coz 9 years ago e847084
The logging test is less ambiguous
1 files changed, 6 insertions(+), 5 deletions(-)

M src/test.cpp
M src/test.cpp => src/test.cpp +6 -5
@@ 203,13 203,14 @@ int main()
    }
  assert(error == false);

  Config::set("log_level", "3");
  Config::set("log_level", "2");
  Config::set("log_file", "");

  log_debug("coucou");
  log_info("coucou");
  log_warning("coucou");
  log_error("coucou");
  std::cout << color << "Testing logging…" << reset << std::endl;
  log_debug("If you see this, the test FAILED.");
  log_info("If you see this, the test FAILED.");
  log_warning("You wust see this message. And the next one too.");
  log_error("It’s not an error, don’t worry, the test passed.");

  return 0;
}