diff options
| author | jao <jao@gnu.org> | 2026-06-27 15:42:52 +0100 |
|---|---|---|
| committer | jao <jao@gnu.org> | 2026-06-27 15:42:52 +0100 |
| commit | 5b450c190aab4a129410171bf40fb3b137233e90 (patch) | |
| tree | 1fffdff0236f512b4270b3074f64731705be3bed /test/Xmobar | |
| parent | 5513b9100728c08789fb19d8cfc314a2c8dab876 (diff) | |
| download | xmobar-5b450c190aab4a129410171bf40fb3b137233e90.tar.gz xmobar-5b450c190aab4a129410171bf40fb3b137233e90.tar.bz2 | |
Avoid # characters in CPU template for testing
Diffstat (limited to 'test/Xmobar')
| -rw-r--r-- | test/Xmobar/Plugins/Monitors/CpuSpec.hs | 2 |
1 files changed, 1 insertions, 1 deletions
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: <total>% <bar>"] - cpuArgs <- getArguments args + cpuArgs <- getArguments $ map (filter ('#' /=)) args cpuValue <- runCpu cpuArgs cpuValue `shouldSatisfy` (all (`elem` ":#") . last . words) it "works with no icon pattern template" $ |
