From: Karel Zak Date: Wed, 11 Mar 2026 10:32:48 +0000 (+0100) Subject: tests: add column strictwidth test X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f8a7aa92c0bbada0222f9fec72546b7d2ee305a4;p=thirdparty%2Futil-linux.git tests: add column strictwidth test Signed-off-by: Karel Zak --- diff --git a/tests/expected/column/table-strictwidth b/tests/expected/column/table-strictwidth new file mode 100644 index 000000000..43ec945b4 --- /dev/null +++ b/tests/expected/column/table-strictwidth @@ -0,0 +1,3 @@ +X|YY |Z +a|b |c +a|b |c diff --git a/tests/ts/column/table b/tests/ts/column/table index 035ee8fe3..0518ca5f2 100755 --- a/tests/ts/column/table +++ b/tests/ts/column/table @@ -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