From 11159cca217a9a1a950f3f531b8e305f708135ad Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Thu, 23 Aug 2018 13:41:05 +0200 Subject: tests: add column --table-empty-lines test Signed-off-by: Karel Zak --- tests/ts/column/files/table-empty-lines | 6 ++++++ tests/ts/column/table | 8 ++++++++ 2 files changed, 14 insertions(+) create mode 100644 tests/ts/column/files/table-empty-lines (limited to 'tests/ts') diff --git a/tests/ts/column/files/table-empty-lines b/tests/ts/column/files/table-empty-lines new file mode 100644 index 000000000..9429b4dab --- /dev/null +++ b/tests/ts/column/files/table-empty-lines @@ -0,0 +1,6 @@ + +A B CCC +AA BBB AA +AAA BB C + +AAAA BBBB CCCC diff --git a/tests/ts/column/table b/tests/ts/column/table index b6dbd5d92..bd1f16f3f 100755 --- a/tests/ts/column/table +++ b/tests/ts/column/table @@ -40,6 +40,14 @@ ts_init_subtest "input-separator-space" $TS_CMD_COLUMN --separator "$(echo -e '\t')" --table $TS_SELF/files/table-sep-space >> $TS_OUTPUT 2>&1 ts_finalize_subtest +ts_init_subtest "empty-lines" +$TS_CMD_COLUMN --table --table-empty-lines $TS_SELF/files/table-empty-lines >> $TS_OUTPUT 2>&1 +ts_finalize_subtest + +ts_init_subtest "noempty-lines" +$TS_CMD_COLUMN --table $TS_SELF/files/table-empty-lines >> $TS_OUTPUT 2>&1 +ts_finalize_subtest + ts_init_subtest "long" $TS_CMD_COLUMN --table $TS_SELF/files/mountinfo >> $TS_OUTPUT 2>&1 ts_finalize_subtest -- cgit v1.2.3-55-g7522