diff --git a/tests/test_ConsoleManager.cpp b/tests/test_ConsoleManager.cpp index 68559e449a746cf901dca8820d1bf5b4ebd82172..9fd1fb330842d3bcfc14d25387464026311a2c7a 100644 --- a/tests/test_ConsoleManager.cpp +++ b/tests/test_ConsoleManager.cpp @@ -29,5 +29,13 @@ TEST_CASE("ConsoleManager", "[utils]") REQUIRE(rang::rang_implementation::controlMode() == rang::control::Off); rang::setControlMode(saved_control); + + const bool show_preamble = ConsoleManager::showPreamble(); + + ConsoleManager::setShowPreamble(not show_preamble); + REQUIRE(show_preamble != ConsoleManager::showPreamble()); + + ConsoleManager::setShowPreamble(show_preamble); + REQUIRE(show_preamble == ConsoleManager::showPreamble()); } }