test various formatting and options
authorMischa POSLAWSKY <perl@shiar.org>
Tue, 10 Sep 2019 16:30:16 +0000 (18:30 +0200)
committerMischa POSLAWSKY <perl@shiar.org>
Thu, 12 Sep 2019 15:48:11 +0000 (17:48 +0200)
26 files changed:
t/t1003-float.in [new file with mode: 0644]
t/t1003-float.out [new file with mode: 0644]
t/t1004-unicode.in [new file with mode: 0644]
t/t1004-unicode.out [new file with mode: 0644]
t/t1100-aligned.in [new file with mode: 0644]
t/t1100-aligned.out [new file with mode: 0644]
t/t1101-wow_much_length_-l30.in [new symlink]
t/t1101-wow_much_length_-l30.out [new file with mode: 0644]
t/t1102-strip_contents_-l0.in [new symlink]
t/t1102-strip_contents_-l0.out [new file with mode: 0644]
t/t1103-only_separators_-l1.in [new symlink]
t/t1103-only_separators_-l1.out [new file with mode: 0644]
t/t1104-abbreviate_contents_-l5.in [new symlink]
t/t1104-abbreviate_contents_-l5.out [new file with mode: 0644]
t/t1105-length_percentage_-l50%.in [new symlink]
t/t1105-length_percentage_-l50%.out [new file with mode: 0644]
t/t1106-forced_length_-l-30.in [new symlink]
t/t1106-forced_length_-l-30.out [new file with mode: 0644]
t/t1200-unaligned_-u.in [new symlink]
t/t1200-unaligned_-u.out [new file with mode: 0644]
t/t1201-unchanged_-uw1.in [new symlink]
t/t1201-unchanged_-uw1.out [new file with mode: 0644]
t/t1202-abbreviate_total_-ul8.in [new symlink]
t/t1202-abbreviate_total_-ul8.out [new file with mode: 0644]
t/t1300-field_number_-f2.in [new file with mode: 0644]
t/t1300-field_number_-f2.out [new file with mode: 0644]

diff --git a/t/t1003-float.in b/t/t1003-float.in
new file mode 100644 (file)
index 0000000..dd5ff2b
--- /dev/null
@@ -0,0 +1,18 @@
+-3
+-2.449
+-2
+-1
+0
+.0000000001
+1e-10
+-1e-2
+-1234e-99
+-1e-1234
+-1f-1234
+-0
+1.0.0
+2.
++1
+1-2
+-2.0
+--1
diff --git a/t/t1003-float.out b/t/t1003-float.out
new file mode 100644 (file)
index 0000000..db8ce4f
--- /dev/null
@@ -0,0 +1,18 @@
+         -3       
+     -2.449       --
+         -2       ----
+         -1       -------<-
+          0       -------<--=-|
+.0000000001       -------<--=-|
+      1e-10       -------<--=-|
+      -1e-2       -------<--=-|
+  -1234e-99       -------<--=-|
+   -1e-1234       -------<--=-|
+         -1f-1234 -------<-
+         -0       -------<--=-|
+        1.0.0     -------<--=-|-----
+          2.      -------<--=-|---------
++1     -------<--=-|
+          1-2     -------<--=-|-----
+       -2.0       ----
+--1    -------<--=-|
diff --git a/t/t1004-unicode.in b/t/t1004-unicode.in
new file mode 100644 (file)
index 0000000..1d265d1
--- /dev/null
@@ -0,0 +1,31 @@
+   9324 A
+    920 B
+    476 C
+    619 Ĉ
+   2094 D
+   6552 E
+   1062 F
+    766 G
+    738 Ĝ
+    371 H
+      7 Ĥ
+   5513 I
+   1140 J
+     38 Ĵ
+   2558 K
+   4253 L
+   2183 M
+   6321 N
+   8110 O
+   2266 P
+   4387 R
+   5462 S
+    331 Ŝ
+   3534 T
+2579 U
+  320 Ŭ
+       1458 V
+           383 Z
+# 23731 whitespace
+4217 …
+\r0
diff --git a/t/t1004-unicode.out b/t/t1004-unicode.out
new file mode 100644 (file)
index 0000000..cb72b7a
--- /dev/null
@@ -0,0 +1,31 @@
+9324 A -<----+-=--->--------------------
+ 920 B -<-
+ 476 C -<
+ 619 Ĉ -<
+2094 D -<----+
+6552 E -<----+-=--->----------
+1062 F -<--
+ 766 G -<-
+ 738 Ĝ -<-
+ 371 H -
+   7 Ĥ 
+5513 I -<----+-=--->-------
+1140 J -<--
+  38 Ĵ 
+2558 K -<----+-=
+4253 L -<----+-=--->--
+2183 M -<----+-
+6321 N -<----+-=--->---------
+8110 O -<----+-=--->----------------
+2266 P -<----+-
+4387 R -<----+-=--->---
+5462 S -<----+-=--->------
+ 331 Ŝ -
+3534 T -<----+-=--->
+2579 U -<----+-=
+ 320 Ŭ -
+1458 V -<---
+ 383 Z -
+# 23731 whitespace
+4217 … -<----+-=--->--
+\r
diff --git a/t/t1100-aligned.in b/t/t1100-aligned.in
new file mode 100644 (file)
index 0000000..6fc0190
--- /dev/null
@@ -0,0 +1,7 @@
+1
+ 2 prepend
+       3:   append
+         4    3   2  1 trailing space 
+  010
+  10. more
+   5.0less
diff --git a/t/t1100-aligned.out b/t/t1100-aligned.out
new file mode 100644 (file)
index 0000000..83e2871
--- /dev/null
@@ -0,0 +1,7 @@
+  1                             -
+  2 prepend                     -<
+  3:   append                   -<
+  4    3   2  1 trailing space  -<+
+010                             -<+=->--
+ 10. more                       -<+=->--
+5.0less                         -<+=
diff --git a/t/t1101-wow_much_length_-l30.in b/t/t1101-wow_much_length_-l30.in
new file mode 120000 (symlink)
index 0000000..f9de8c6
--- /dev/null
@@ -0,0 +1 @@
+t1100-aligned.in
\ No newline at end of file
diff --git a/t/t1101-wow_much_length_-l30.out b/t/t1101-wow_much_length_-l30.out
new file mode 100644 (file)
index 0000000..83e2871
--- /dev/null
@@ -0,0 +1,7 @@
+  1                             -
+  2 prepend                     -<
+  3:   append                   -<
+  4    3   2  1 trailing space  -<+
+010                             -<+=->--
+ 10. more                       -<+=->--
+5.0less                         -<+=
diff --git a/t/t1102-strip_contents_-l0.in b/t/t1102-strip_contents_-l0.in
new file mode 120000 (symlink)
index 0000000..f9de8c6
--- /dev/null
@@ -0,0 +1 @@
+t1100-aligned.in
\ No newline at end of file
diff --git a/t/t1102-strip_contents_-l0.out b/t/t1102-strip_contents_-l0.out
new file mode 100644 (file)
index 0000000..667925c
--- /dev/null
@@ -0,0 +1,7 @@
+  1 ----
+  2 -------
+  3:---------<-
+  4 ---------<---+
+010 ---------<---+---=-------->---------
+ 10.---------<---+---=-------->---------
+5.0l---------<---+---=
diff --git a/t/t1103-only_separators_-l1.in b/t/t1103-only_separators_-l1.in
new file mode 120000 (symlink)
index 0000000..f9de8c6
--- /dev/null
@@ -0,0 +1 @@
+t1100-aligned.in
\ No newline at end of file
diff --git a/t/t1103-only_separators_-l1.out b/t/t1103-only_separators_-l1.out
new file mode 100644 (file)
index 0000000..4f05457
--- /dev/null
@@ -0,0 +1,7 @@
+  1  ----
+  2  -------
+  3: ---------<-
+  4  ---------<---+
+010  ---------<---+--=-------->---------
+ 10. ---------<---+--=-------->---------
+5.0l ---------<---+--=-
diff --git a/t/t1104-abbreviate_contents_-l5.in b/t/t1104-abbreviate_contents_-l5.in
new file mode 120000 (symlink)
index 0000000..f9de8c6
--- /dev/null
@@ -0,0 +1 @@
+t1100-aligned.in
\ No newline at end of file
diff --git a/t/t1104-abbreviate_contents_-l5.out b/t/t1104-abbreviate_contents_-l5.out
new file mode 100644 (file)
index 0000000..3f86a77
--- /dev/null
@@ -0,0 +1,7 @@
+  1     ---
+  2 pr… ------
+  3:  … --------<-
+  4   … --------<--+-
+010     --------<--+---=------->--------
+ 10. m… --------<--+---=------->--------
+5.0less --------<--+---=
diff --git a/t/t1105-length_percentage_-l50%.in b/t/t1105-length_percentage_-l50%.in
new file mode 120000 (symlink)
index 0000000..f9de8c6
--- /dev/null
@@ -0,0 +1 @@
+t1100-aligned.in
\ No newline at end of file
diff --git a/t/t1105-length_percentage_-l50%.out b/t/t1105-length_percentage_-l50%.out
new file mode 100644 (file)
index 0000000..9ff681d
--- /dev/null
@@ -0,0 +1,7 @@
+  1                    --
+  2 prepend            ---
+  3:   append          ----<
+  4    3   2  1 trail… ----<+-
+010                    ----<+-=--->-----
+ 10. more              ----<+-=--->-----
+5.0less                ----<+-=-
diff --git a/t/t1106-forced_length_-l-30.in b/t/t1106-forced_length_-l-30.in
new file mode 120000 (symlink)
index 0000000..f9de8c6
--- /dev/null
@@ -0,0 +1 @@
+t1100-aligned.in
\ No newline at end of file
diff --git a/t/t1106-forced_length_-l-30.out b/t/t1106-forced_length_-l-30.out
new file mode 100644 (file)
index 0000000..67e5e7b
--- /dev/null
@@ -0,0 +1,7 @@
+  1                               <
+  2 prepend                       <
+  3:   append                     <+
+  4    3   2  1 trailing space    <+
+010                               <+=>--
+ 10. more                         <+=>--
+5.0less                           <+=
diff --git a/t/t1200-unaligned_-u.in b/t/t1200-unaligned_-u.in
new file mode 120000 (symlink)
index 0000000..f9de8c6
--- /dev/null
@@ -0,0 +1 @@
+t1100-aligned.in
\ No newline at end of file
diff --git a/t/t1200-unaligned_-u.out b/t/t1200-unaligned_-u.out
new file mode 100644 (file)
index 0000000..88e0713
--- /dev/null
@@ -0,0 +1,7 @@
+1                             -
+ 2 prepend                     --
+       3:   append                   --<
+         4    3   2  1 trailing space  --<+
+  010                             --<+=->---
+  10. more                       --<+=->---
+   5.0less                         --<+=
diff --git a/t/t1201-unchanged_-uw1.in b/t/t1201-unchanged_-uw1.in
new file mode 120000 (symlink)
index 0000000..f9de8c6
--- /dev/null
@@ -0,0 +1 @@
+t1100-aligned.in
\ No newline at end of file
diff --git a/t/t1201-unchanged_-uw1.out b/t/t1201-unchanged_-uw1.out
new file mode 100644 (file)
index 0000000..d8bf8d1
--- /dev/null
@@ -0,0 +1,7 @@
+1                             
+ 2 prepend                     
+       3:   append                   
+         4    3   2  1 trailing space  
+  010                             
+  10. more                       
+   5.0less                         
diff --git a/t/t1202-abbreviate_total_-ul8.in b/t/t1202-abbreviate_total_-ul8.in
new file mode 120000 (symlink)
index 0000000..f9de8c6
--- /dev/null
@@ -0,0 +1 @@
+t1100-aligned.in
\ No newline at end of file
diff --git a/t/t1202-abbreviate_total_-ul8.out b/t/t1202-abbreviate_total_-ul8.out
new file mode 100644 (file)
index 0000000..bc00f50
--- /dev/null
@@ -0,0 +1,7 @@
+1      ---
+ 2 pre… -------
+       3:   … --------<-
+         4      --------<---+
+  010      --------<---+--=------->---------
+  10. …   --------<---+--=------->---------
+   5.0…     --------<---+--=-
diff --git a/t/t1300-field_number_-f2.in b/t/t1300-field_number_-f2.in
new file mode 100644 (file)
index 0000000..5e7b087
--- /dev/null
@@ -0,0 +1,4 @@
+1 2 3 4
+10 20 30 40
+3 16 9 123
+ 4 5 12 7
diff --git a/t/t1300-field_number_-f2.out b/t/t1300-field_number_-f2.out
new file mode 100644 (file)
index 0000000..bf25b3d
--- /dev/null
@@ -0,0 +1,4 @@
+1 2  3 4    ---
+10 20 30 40 -------<+--=------>---------
+3 16  9 123 -------<
+4 5 12 7    -------<+--