Core (unit tests)

- Added a unit test for `RUSTACEAN_SIMPLE`
This commit is contained in:
Tristan B. Velloza Kildaire 2023-11-22 11:50:48 +02:00
parent 08aa1d6c0c
commit e74f906b12
1 changed files with 21 additions and 0 deletions

View File

@ -344,3 +344,24 @@ unittest
// Make space between unit tests // Make space between unit tests
writeln(); writeln();
} }
unittest
{
GoggaLogger gLogger = new GoggaLogger();
gLogger.mode(GoggaMode.RUSTACEAN_SIMPLE);
// Test the normal modes
gLogger.info("This is an info message");
gLogger.warn("This is a warning message");
gLogger.error("This is an error message");
// We shouldn't see anything as debug is off
gLogger.dbg("This is a debug which is hidden", 1);
// Now enable debugging and you should see it
gLogger.enableDebug();
gLogger.dbg("This is a VISIBLE debug", true);
// Make space between unit tests
writeln();
}