]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
tests: add column strictwidth test
authorKarel Zak <kzak@redhat.com>
Wed, 11 Mar 2026 10:32:48 +0000 (11:32 +0100)
committerKarel Zak <kzak@redhat.com>
Wed, 11 Mar 2026 10:32:48 +0000 (11:32 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
tests/expected/column/table-strictwidth [new file with mode: 0644]
tests/ts/column/table

diff --git a/tests/expected/column/table-strictwidth b/tests/expected/column/table-strictwidth
new file mode 100644 (file)
index 0000000..43ec945
--- /dev/null
@@ -0,0 +1,3 @@
+X|YY   |Z
+a|b    |c
+a|b    |c
index 035ee8fe3516ca644b66a510d72c42c4c1bff754..0518ca5f2beebc00f5c29a7de4a1d64b8f2bfb86 100755 (executable)
@@ -243,4 +243,8 @@ ts_init_subtest "min-width"
 echo -e "a b c\na b c" | $TS_CMD_COLUMN --table --table-column "name=X,width=5" -C "name=YY,width=5" -C "name=Z" --output-separator '|' --output-width unlimited >> $TS_OUTPUT 2>> $TS_ERRLOG
 ts_finalize_subtest
 
+ts_init_subtest "strictwidth"
+echo -e "a b c\na b c" | $TS_CMD_COLUMN --table --table-column "name=X,width=5" -C "name=YY,width=5,strictwidth" -C "name=Z" --output-separator '|' --output-width unlimited >> $TS_OUTPUT 2>> $TS_ERRLOG
+ts_finalize_subtest
+
 ts_finalize