]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
tests: column(1) test for space-char separator
authorKarel Zak <kzak@redhat.com>
Mon, 12 Feb 2018 13:19:47 +0000 (14:19 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 12 Feb 2018 13:19:47 +0000 (14:19 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
tests/expected/column/table-input-separator-space [new file with mode: 0644]
tests/ts/column/files/table-sep-space [new file with mode: 0644]
tests/ts/column/table

diff --git a/tests/expected/column/table-input-separator-space b/tests/expected/column/table-input-separator-space
new file mode 100644 (file)
index 0000000..8a6513c
--- /dev/null
@@ -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 (file)
index 0000000..25d9b5a
--- /dev/null
@@ -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 
index f11c1d79409520fc6c3dcc1c9907f1b43f878830..27b52e7c8dfe71d01312676026ed840ee33a9f0b 100755 (executable)
@@ -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