summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/expected/column/table-empty-column1
-rwxr-xr-xtests/ts/column/table4
2 files changed, 5 insertions, 0 deletions
diff --git a/tests/expected/column/table-empty-column b/tests/expected/column/table-empty-column
new file mode 100644
index 000000000..ed32da96c
--- /dev/null
+++ b/tests/expected/column/table-empty-column
@@ -0,0 +1 @@
+:a:b
diff --git a/tests/ts/column/table b/tests/ts/column/table
index 5c89d5eaf..b6dbd5d92 100755
--- a/tests/ts/column/table
+++ b/tests/ts/column/table
@@ -104,4 +104,8 @@ $TS_CMD_COLUMN --table $TS_SELF/files/mountinfo \
>> $TS_OUTPUT 2>&1
ts_finalize_subtest
+ts_init_subtest "empty-column"
+printf ':a:b\n' | $TS_CMD_COLUMN --table --separator ':' --output-separator ':' >> $TS_OUTPUT 2>&1
+ts_finalize_subtest
+
ts_finalize