summaryrefslogtreecommitdiff
path: root/test/core/LoggerTest.cpp
diff options
context:
space:
mode:
authorBenjamin Paassen <bpaassen@techfak.uni-bielefeld.de>2014-12-03 00:57:57 +0100
committerBenjamin Paassen <bpaassen@techfak.uni-bielefeld.de>2014-12-03 00:57:57 +0100
commit41366eb61e5b85524b8ee07ae183df4f9f8a1f6d (patch)
treeac9468e4adc6cfcb63b4adc324770dc07de0e5aa /test/core/LoggerTest.cpp
parent314e97ac5307f5053fc0c31ec23c39ba9c9a0aac (diff)
parented79df8f263dcd973c8ceb016b516644d87d8aa8 (diff)
Merge branch 'master' of somweyr.de:ousia
Diffstat (limited to 'test/core/LoggerTest.cpp')
-rw-r--r--test/core/LoggerTest.cpp10
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);
}