From 5b450c190aab4a129410171bf40fb3b137233e90 Mon Sep 17 00:00:00 2001 From: jao Date: Sat, 27 Jun 2026 15:42:52 +0100 Subject: Avoid # characters in CPU template for testing --- test/Xmobar/Plugins/Monitors/CpuSpec.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/Xmobar/Plugins/Monitors') diff --git a/test/Xmobar/Plugins/Monitors/CpuSpec.hs b/test/Xmobar/Plugins/Monitors/CpuSpec.hs index 3d07dee..d3155ef 100644 --- a/test/Xmobar/Plugins/Monitors/CpuSpec.hs +++ b/test/Xmobar/Plugins/Monitors/CpuSpec.hs @@ -21,7 +21,7 @@ spec = cpuValue `shouldSatisfy` (\item -> "Cpu:" `isPrefixOf` item) it "works with bar template" $ do let args = ["-L","3","-H","50","--normal","green","--high","red", "-t", "Cpu: % "] - cpuArgs <- getArguments args + cpuArgs <- getArguments $ map (filter ('#' /=)) args cpuValue <- runCpu cpuArgs cpuValue `shouldSatisfy` (all (`elem` ":#") . last . words) it "works with no icon pattern template" $ -- cgit v1.2.3