diff options
author | Andreas Stöckel <astoecke@techfak.uni-bielefeld.de> | 2014-11-30 23:42:05 +0100 |
---|---|---|
committer | Andreas Stöckel <astoecke@techfak.uni-bielefeld.de> | 2014-11-30 23:42:05 +0100 |
commit | 58ac684725b4c5c75c94516a2068d8d55e8c348c (patch) | |
tree | f455832ac77707947d655f4c4389b45b3b363f38 /test/core | |
parent | 235b98e0d1a2e9e60c440076b5a11c8bf64ba071 (diff) |
backup
Diffstat (limited to 'test/core')
-rw-r--r-- | test/core/LoggerTest.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/test/core/LoggerTest.cpp b/test/core/LoggerTest.cpp index 4badc28..7031dc7 100644 --- a/test/core/LoggerTest.cpp +++ b/test/core/LoggerTest.cpp @@ -26,17 +26,23 @@ namespace ousia { TEST(TerminalLogger, log) { + // Test for manual visual expection only -- no assertions TerminalLogger logger{std::cerr, true}; - logger.pushFilename("/homes/mmuster/ousia/test.odp"); + logger.pushFilename("test.odp"); logger.debug("This is a test debug message", 10, 20); + logger.debug("This is a test debug message with no column", 10); + logger.debug("This is a test debug message with no line"); + logger.debug("This is a test debug message with no file", ""); + logger.debug("This is a test debug message with no file but a line", "", 10); + logger.debug("This is a test debug message with no file but a line and a column", "", 10, 20); logger.note("This is a test note", 10, 20); logger.warning("This is a test warning", 10, 20); logger.error("This is a test error", 10, 20); logger.fatalError("This is a test fatal error!", 10, 20); try { - throw LoggableException{"A fatal exception", true}; + throw LoggableException{"A fatal exception"}; } catch (const LoggableException &ex) { logger.log(ex); } |