test field selection and human readable output
authorMischa POSLAWSKY <perl@shiar.org>
Mon, 9 Sep 2019 21:59:19 +0000 (23:59 +0200)
committerMischa POSLAWSKY <perl@shiar.org>
Mon, 9 Sep 2019 22:37:53 +0000 (00:37 +0200)
t/t1301-field_grep_-ftime=\K.in [new file with mode: 0644]
t/t1301-field_grep_-ftime=\K.out [new file with mode: 0644]
t/t1401-magnitude_-H.in [new file with mode: 0644]
t/t1401-magnitude_-H.out [new file with mode: 0644]
t/t1403-precision_-H.in [new file with mode: 0644]
t/t1403-precision_-H.out [new file with mode: 0644]

diff --git a/t/t1301-field_grep_-ftime=\K.in b/t/t1301-field_grep_-ftime=\K.in
new file mode 100644 (file)
index 0000000..0aeefdd
--- /dev/null
@@ -0,0 +1,16 @@
+PING google.com(ams15s40-in-x0e.1e100.net (2a00:1450:400e:80d::200e)) 56 data bytes
+... icmp_seq=1 time=9.92 ms  
+... icmp_seq=2 time=9.38 ms  
+... icmp_seq=3 time=10.5 ms  
+... icmp_seq=4 time=9.90 ms  
+... icmp_seq=5 time=9.66 ms  
+... icmp_seq=6 time=9.88 ms  
+... icmp_seq=7 time=9.44 ms  
+... icmp_seq=8 time=11.8 ms  
+... icmp_seq=9 time=9.56 ms  
+... icmp_seq=10 time=10.0 ms 
+... icmp_seq=11 time=9.48 ms 
+                                                     
+--- google.com ping statistics ---                   
+11 packets transmitted, 11 received, 0% packet loss, time 10016ms
+rtt min/avg/max/mdev = 9.383/9.968/11.810/0.674 ms   
diff --git a/t/t1301-field_grep_-ftime=\K.out b/t/t1301-field_grep_-ftime=\K.out
new file mode 100644 (file)
index 0000000..3f79b10
--- /dev/null
@@ -0,0 +1,16 @@
+PING google.com(ams15s40-in-x0e.1e100.net (2a00:1450:400e:80d::200e)) 56 data bytes
+... icmp_seq=1 time=9.92 ms   -------+
+... icmp_seq=2 time=9.38 ms   -------+
+... icmp_seq=3 time=10.5 ms   -------+-
+... icmp_seq=4 time=9.90 ms   -------+
+... icmp_seq=5 time=9.66 ms   -------+
+... icmp_seq=6 time=9.88 ms   -------+
+... icmp_seq=7 time=9.44 ms   -------+
+... icmp_seq=8 time=11.8 ms   -------+--
+... icmp_seq=9 time=9.56 ms   -------+
+... icmp_seq=10 time=10.0 ms  -------+
+... icmp_seq=11 time=9.48 ms  -------+
+                          
+--- google.com ping statistics ---                   
+11 packets transmitted, 11 received, 0% packet loss, time 10016ms
+rtt min/avg/max/mdev = 9.383/9.968/11.810/0.674 ms   
diff --git a/t/t1401-magnitude_-H.in b/t/t1401-magnitude_-H.in
new file mode 100644 (file)
index 0000000..3c238a6
--- /dev/null
@@ -0,0 +1,20 @@
+1e-11
+2e-10
+3e-09
+4e-08
+5e-07
+6e-06
+7e-05
+0.0008
+0.009
+0.1
+1.1
+12
+130
+1400
+15000
+160000
+1700000
+18000000
+190000000
+2000000000
diff --git a/t/t1401-magnitude_-H.out b/t/t1401-magnitude_-H.out
new file mode 100644 (file)
index 0000000..bbe87ab
--- /dev/null
@@ -0,0 +1,20 @@
+ 10p 
+200p 
+3.0n 
+ 40n 
+500n 
+6.0μ 
+ 70μ 
+800μ 
+9.0m 
+100m 
+1.1  
+ 12  
+130  
+1.4k 
+ 15k 
+160k 
+1.7M 
+ 18M 
+190M =--
+2.0G =--------------------------------
diff --git a/t/t1403-precision_-H.in b/t/t1403-precision_-H.in
new file mode 100644 (file)
index 0000000..4a74cb3
--- /dev/null
@@ -0,0 +1,12 @@
+1
+1.0
+2000
+2001
+2050
+2050.1
+200001
+0
+1.602176634e-19
+-1.5001e-19
+-1e-30
+-1.51e-30
diff --git a/t/t1403-precision_-H.out b/t/t1403-precision_-H.out
new file mode 100644 (file)
index 0000000..ee653b1
--- /dev/null
@@ -0,0 +1,12 @@
+  1  
+1.0  
+2.0k 
+2.0k 
+2.0k 
+2.1k 
+200k -=-------------------------------
+  0  
+160z 
+-150z 
+-1000e-33 
+-1.5e-32