]> mj.ucw.cz Git - xsv.git/commitdiff
Tests: more header hacks
authorMartin Mares <mj@ucw.cz>
Tue, 24 Jul 2012 15:22:39 +0000 (17:22 +0200)
committerMartin Mares <mj@ucw.cz>
Tue, 24 Jul 2012 15:22:39 +0000 (17:22 +0200)
tests/2110-equalize-with-hdr [new file with mode: 0644]
tests/3100-table-with-header [new file with mode: 0644]

diff --git a/tests/2110-equalize-with-hdr b/tests/2110-equalize-with-hdr
new file mode 100644 (file)
index 0000000..6fcd16e
--- /dev/null
@@ -0,0 +1,11 @@
+-d: --tsv -d: -h --fields=f1,f2,f3 --equalize
+1:2:3:4
+a:b
+
+A:B:C:D:E
+---
+f1:f2:f3::
+1:2:3:4:
+a:b:::
+::::
+A:B:C:D:E
diff --git a/tests/3100-table-with-header b/tests/3100-table-with-header
new file mode 100644 (file)
index 0000000..9549f9b
--- /dev/null
@@ -0,0 +1,27 @@
+-d: -h --table --grid -h
+Z:Element Name
+1:Hydrogen
+2:Helium
+3:Lithium
+4:Beryllium
+5:Boron
+10:Neon
+11:Sodium
+12:Magnesium
+13:Aluminium
+102:Nobelium
+---
++-----+--------------+
+| Z   | Element Name |
++-----+--------------+
+| 1   | Hydrogen     |
+| 2   | Helium       |
+| 3   | Lithium      |
+| 4   | Beryllium    |
+| 5   | Boron        |
+| 10  | Neon         |
+| 11  | Sodium       |
+| 12  | Magnesium    |
+| 13  | Aluminium    |
+| 102 | Nobelium     |
++-----+--------------+