From 48d91f23b74cafab311a60e790720e73cac197d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Del=20Pino?= <stephane.delpino44@gmail.com> Date: Wed, 1 Mar 2023 01:12:18 +0100 Subject: [PATCH] Add missing test for ConsoleManager --- tests/test_ConsoleManager.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/test_ConsoleManager.cpp b/tests/test_ConsoleManager.cpp index 68559e449..9fd1fb330 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()); } } -- GitLab