From 1800de76baf2f1a455d9d25402a72c51df7c91be Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Mon, 12 Feb 2018 14:19:47 +0100 Subject: tests: column(1) test for space-char separator Signed-off-by: Karel Zak --- tests/expected/column/table-input-separator-space | 6 ++++++ tests/ts/column/files/table-sep-space | 6 ++++++ tests/ts/column/table | 3 +++ 3 files changed, 15 insertions(+) create mode 100644 tests/expected/column/table-input-separator-space create mode 100644 tests/ts/column/files/table-sep-space (limited to 'tests') diff --git a/tests/expected/column/table-input-separator-space b/tests/expected/column/table-input-separator-space new file mode 100644 index 000000000..8a6513c11 --- /dev/null +++ b/tests/expected/column/table-input-separator-space @@ -0,0 +1,6 @@ +AAA BBBB C DDDD +BBB CCCC DDD +AA BB DD +AAAA B CC D +AA CC DD +AAAAA BBB CCC DDDD diff --git a/tests/ts/column/files/table-sep-space b/tests/ts/column/files/table-sep-space new file mode 100644 index 000000000..25d9b5ab0 --- /dev/null +++ b/tests/ts/column/files/table-sep-space @@ -0,0 +1,6 @@ +AAA BBBB C DDDD + BBB CCCC DDD +AA BB DD +AAAA B CC D +AA CC DD +AAAAA BBB CCC DDDD diff --git a/tests/ts/column/table b/tests/ts/column/table index f11c1d794..27b52e7c8 100755 --- a/tests/ts/column/table +++ b/tests/ts/column/table @@ -36,6 +36,9 @@ ts_init_subtest "input-separator" $TS_CMD_COLUMN --separator ',' --table $TS_SELF/files/table-sep >> $TS_OUTPUT 2>&1 ts_finalize_subtest +ts_init_subtest "input-separator-space" +$TS_CMD_COLUMN --separator ',' --table $TS_SELF/files/table-sep-space >> $TS_OUTPUT 2>&1 +ts_finalize_subtest ts_init_subtest "long" $TS_CMD_COLUMN --table $TS_SELF/files/mountinfo >> $TS_OUTPUT 2>&1 -- cgit v1.2.3-55-g7522