]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
cal: add test for vertical week color
authorThomas Weißschuh <thomas@t-8ch.de>
Wed, 15 Feb 2023 19:20:27 +0000 (19:20 +0000)
committerThomas Weißschuh <thomas@t-8ch.de>
Wed, 15 Feb 2023 19:40:28 +0000 (19:40 +0000)
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
tests/expected/cal/color-vertical-week [new file with mode: 0644]
tests/ts/cal/color

diff --git a/tests/expected/cal/color-vertical-week b/tests/expected/cal/color-vertical-week
new file mode 100644 (file)
index 0000000..d0ccdc1
--- /dev/null
@@ -0,0 +1,9 @@
+    February 2023      
+Su     5 12 19 26   
+Mo     6 13 20 27   
+Tu     7 14 21 28   
+We  1  8 \e[7m15\e[27m 22      
+Th  2  9 16 23      
+Fr  3 10 17 24      
+Sa  4 11 18 25      
+    5  6  7  8  9   
index 0ba175fa2a574c2711111c117c442fc5481fa757..3474ae385c738f2d5270df11a821ada312b0bb50 100755 (executable)
@@ -83,5 +83,12 @@ fi
 $TS_CMD_CAL --color=always --vertical 15 2 2023 >> $TS_OUTPUT
 ts_finalize_subtest
 
+ts_init_subtest "vertical-week"
+if [ "$USETERM" == "yes" ]; then
+       $TS_CMD_CAL --color=always 15 2 2023
+fi
+$TS_CMD_CAL --color=always --vertical --week=15 15 2 2023 >> $TS_OUTPUT
+ts_finalize_subtest
+
 
 ts_finalize