t/regress: prepend commands to output files, cmddiff to compare
authorMischa POSLAWSKY <perl@shiar.org>
Thu, 24 Nov 2022 20:44:24 +0000 (21:44 +0100)
committerMischa POSLAWSKY <perl@shiar.org>
Sun, 27 Nov 2022 18:21:42 +0000 (19:21 +0100)
Input file names no longer necessarily identical, nor do parameters' special
characters have to be included (renames in separate commit).

94 files changed:
t/cmddiff [new file with mode: 0755]
t/regress.t
t/t0001-version_-a_--version.out
t/t0002-usage_-h_|wc_-l.out
t/t0003-invalid_options_-Az_?64.out
t/t1001-seq.out
t/t1002-sinewave.out
t/t1003-sinine.out
t/t1005-float.out
t/t1006-unvalued.out
t/t1008-unicode.out
t/t1012-unmarked_--markers=.out
t/t1019-invalid_marker_--markers=atest\_09998\_b200v\_c15000\_0test.out
t/t1100-aligned.out
t/t1101-wow_much_length_-l30.out
t/t1102-strip_contents_-l0.out
t/t1103-only_separators_-l1.out
t/t1104-abbreviate_contents_-l5.out
t/t1105-length_percentage_-l50%.out
t/t1106-forced_length_-l-30.out
t/t1200-unaligned_-u.out
t/t1201-unchanged_-uw1.out
t/t1202-abbreviate_total_-ul8.out
t/t1260-powers_of_ten_-e.out
t/t1261-binary_powers_-e.out
t/t1262-powers_of_tenths_-e.out
t/t1300-field_number_-f2.out
t/t1301-field_grep_-ftime=.out
t/t1302-invalid_field_regex_-f\(.out
t/t1305-numeric_field_-f+1.out
t/t1310-currency_-f',\K'.out
t/t1311-currency_zoom_-L6-_-f',([0-9.]{5})'_--value-length=6_--minval=1.out
t/t1312-currency-crop_-f,_--value-length=7_--minval=1.1_--maxval=1.11_-L10-30_-s.out
t/t1320-earthquakes_-f'([.0-9]+)(?=,m)'.out
t/t1330-pokemon_-f'(?<=\()'.out
t/t1401-magnitude_-H.out
t/t1402-rounded_-H_-w1.out
t/t1403-precision_-H.out
t/t1404-minitude_-H.out
t/t1405-megametric_-Hes.out
t/t1421-sexy_time_--sexagesimal.out
t/t1422-all_the_time_--sexagesimal_-H_-sC.out
t/t1501-end_limit_-L3.out
t/t1502-start_limit_-L9-.out
t/t1503-partial_-L1-2.out
t/t1504-bottom_limit_-L-3.out
t/t1505-bottom_range_-L-4-3.out
t/t1506-limit_offset_-L-4+2_#TODO.out [changed from symlink to file mode: 0644]
t/t1514-limit_beyond_end_-L-5.out
t/t1601-integer_statistics_-sL0.out
t/t1602-float_statistics_-sL0.out
t/t1603-added_statistics_-sL2-.out
t/t1700-empty_input.out
t/t1701-number_option_-1_?64.out
t/t1710-zero_value_--_0.out
t/t1711-value_parameter_--_1.out
t/t1712-value_parameters_--_1_4_8_2_6_3_9_5_2.out
t/t1713-negative_value_--_-1_1.out
t/t1721-option_overrides_-C_-M_1.out
t/t1722-mixed_options_-M_1_-l_2_hi_3_--st_4_--_5_-1_--version.out
t/t1731-unknown_palette_--palette=none_?64.out
t/t1801-progress_-t-1_-ftime=\K_?.out
t/t1901-technicolor_-Cs_--header.out
t/t1912-currency_part_-f,_--value-length=7_--minval=1.1_--maxval=1.11_-L10-30_-Cs.out
t/t1920-colorwave_uncolored_-C_--palette=.out
t/t1921-colorwave_unicolor_-C_--palette=1.out
t/t1922-colorwave_duocolor_-C_--palette=40,0.out
t/t1923-colorwave_tricolor_-C_--palette=41,0,42.out
t/t1924-colorwave_custom_palette_-C_--palette=31,41,43,42,32.out
t/t1931-colorwave_fire_-C_--palette=fire.out
t/t1932-colorwave_fireworks_-C_--palette=fire256.out
t/t1933-lolcat_-C_--spark_--palette=rainbow.out
t/t2100-sparkwave_--spark.out
t/t2103-spark-lines_--spark_-w9.out
t/t2105-spark_ascii_-a_--spark.out
t/t2109-spark_distribution_--spark_--indicators=-123456789.out
t/t2110-spark_binary_--spark_--indicators=XO.out
t/t2111-spark_unicode_--spark_--indicators=-·•O.out
t/t2115-spark-oneliner_--spark_--indicators=1.out
t/t2120-prefixed_--indicators=.out
t/t2122-outcommented_--indicators=#.out
t/t2130-overspark_--spark_--maxval=1.out
t/t2180-spark_combined_--spark_--indicators=012345_-Cs_--maxval=1_-L17.out
t/t2201-ascii_-aHl7.out
t/t2220-starry_line_--graph-format=*.out
t/t2221-unicode_line_--graph-format=─.out
t/t2250-unremarkable_--markers=.out
t/t2255-value_marker_--markers=:-2.out
t/t2256-remarkable_--mark='?0_!0'.out
t/t2258-repeat_markers_--mark=:/1.out
t/t2259-log_axis_-e_--markers=+/1.out
t/t2264-minmax_percent_--markers=')0v_(100v'_#TODO.out
t/t2265-percentile_markers_--graph-format=─_--markers='550v_00v_11v_999v_^100v'.out
t/t2295-unicode_in_my_bar_--graph-format=─_--markers='┼avg_╫50v_┬-2'.out

diff --git a/t/cmddiff b/t/cmddiff
new file mode 100755 (executable)
index 0000000..de1536c
--- /dev/null
+++ b/t/cmddiff
@@ -0,0 +1,61 @@
+#!/usr/bin/env perl
+use 5.012;
+use warnings;
+
+# run script on the first line and compare its output to remaining lines
+
+my $regenerate = @ARGV > 1 && $ARGV[0] eq '-G' && shift;
+
+@ARGV or die "missing input script\n";
+!!(my $spec = readline)
+       or die "input lacks a script on the first line\n";
+
+my $script = $spec;
+chomp $script;
+my $wantexit = $script =~ s/\h+[?](\d+)\z// ? $1 : 0;
+my $wantwarn = $script !~ s/[?]\z//;
+my $shell = $script;
+if ($script =~ /\|/) {
+       # explicit shell wrapper to capture all warnings
+       $script =~ s/'/'\\''/g;
+       $shell = "sh -c '$shell'";
+}
+$shell .= ' 2>&1' if $wantwarn;
+
+local $ENV{COLUMNS} = 40;
+open my $cmd, '-|', $shell or do {
+       say "cannot run script `$script`: $!";
+       exit 2;
+};
+my @lines = readline $cmd;
+close $cmd;
+my $error = $? >> 8;
+
+if ($regenerate) {
+       open my $rewrite, '>', $ARGV;
+       print {$rewrite} $_ for $spec, @lines;
+       exit;
+}
+
+if ($error != $wantexit) {
+       say "unexpected exit status $error for `$script`";
+       exit 2;
+}
+
+my @wanted = readline;
+my $diff = 0;
+
+while (@lines or @wanted) {
+       my $was = shift @wanted;
+       my $is  = shift @lines;
+       next if defined $was and defined $is and $was eq $is;
+       $diff++;
+       print color(32), "< ", color(0), $_ for $was // ();
+       print color(31), "> ", color(0), $_ for $is  // ();
+}
+
+exit($diff > 0);
+
+sub color {
+       return "\e[@{_}m";
+}
index d7961cc79e01e5cd31aa86e37d7a9bd4dd89d60c..177cc8dfa1f22c0f99208e60d7fa104bcfcabdd9 100755 (executable)
@@ -5,24 +5,17 @@ cd "${0%/*}" || exit 1
 test_count=0
 fail_count=0
 
-COLUMNS=40
 colorize=
 test -t 1 && colorize=1
 color () {
        test -n "$colorize" &&
        printf '\33[%sm' $@
 }
-regenerate=
-diffcmd () {
-       comm --nocheck-order --output-delimiter=::: -3 $@ |
-       perl -pe"END{exit !!\$.} s/^:::/$(color 31)>/ || s/^/$(color 32)</"
-}
 
 for option in "$@"
 do
        case "$option" in
-       -G) regenerate=1 && shift;;
-       -*) echo "Usage: $0 [-G] [<files>...]"; exit 64;;
+       -*) echo "Usage: $0 [<files>...]"; exit 64;;
        esac
 done
 
@@ -35,35 +28,11 @@ for candidate in $params
 do
        test_count=$((test_count+1))
        file="${candidate%.out}"
-       input="${file%%_-*}.in"
        name="$(echo ${file#*-} | tr _ \ )"
 
-       set -- barcat
-       [ -r "$input" ] && set -- "$@" "$input"
-       case "$name" in
-               *\ -*)
-                       args="${name#* -}"
-                       set -- "$@" -"${args% [?|]*}"
-                       ;;
-       esac
-       case "$name" in
-               *' ?' ) set -- sh -c "\$0 \$@ 2>/dev/null" "$@";;
-               *' ?'*) set -- sh -c "\$0 \$@ | test \$\? = ${name#* \?}" "$@";;
-               *' |'*) set -- sh -c "\$0 \$@ | ${name#* |}" "$@";;
-               *)      eval set -- "$1" $2 $3
-       esac
-
-       if test -n "$regenerate"
-       then
-               if test -e $file.sh
-               then
-                       echo "ok $test_count # skip $file.out"
-                       continue
-               fi
-               "$@" >$file.out 2>&1
-       elif test -e "$file.out"
+       if test -e "$file.out"
        then
-               "$@" 2>&1 | diffcmd "$file.out" -
+               ./cmddiff "$file.out"
        else
                color 33
                echo "not ok $test_count - $name # TODO"
index 0ba5912342d39381ed1cc246c04cfbc847553eb2..de73d0f6be0abd9903d383f92a8c10a14560dfe4 100644 (file)
@@ -1 +1,2 @@
+barcat -a --version
 barcat =^,^= version 1.09
index 7facc89938bbc5635e3d36ffa56b4c85e9b07db8..55ac83fcaa67f830d277bf46c9b520c5a54ab030 100644 (file)
@@ -1 +1,2 @@
+barcat -h |wc -l
 36
index e8e36f1e1315d0ddcf1e7c112e6814217c91407e..73004feac8d5235fd337486748c3d1033a2517f1 100644 (file)
@@ -1,2 +1,3 @@
+barcat -Az ?64
 Unknown option: A
 Unknown option: z
index 6947d1e49478d593d3c33de2b210bdd247fb46da..5cf2317e284466143e837d2fd5f4e67848298db7 100644 (file)
@@ -1,3 +1,4 @@
+barcat t1001-seq.in
 1 -------------
 2 ------------------------+
 3 ------------------------+----->-------
index 21a416e2f65d9a38e405462cc2343db586630245..5524d32b4c895b61c804a52cb2e98e57f066d2c1 100644 (file)
@@ -1,3 +1,4 @@
+barcat t1002-sinewave.in
  998 ---
 1987 -------
 2955 ----------
index 62788d43e00d30824898d86061a4898a25d9d791..1a153ad3d260ff9f0676d5c0988755fdde55206e 100644 (file)
@@ -1,3 +1,4 @@
+barcat t1003-sinine.in
   0.930507621912314 ---<----|----->----
   0.968912421710645 ---<----|----->-----
   0.992197667229329 ---<----|----->-----
index ad784eac7705d77e9d648d97b584e705488b3234..07b8f81e677c16f5d305e1fda77db31cf0bfd314 100644 (file)
@@ -1,3 +1,4 @@
+barcat t1005-float.in
          -3       
      -2.449       --
          -2       ----
index 940dfe4e00ecd0497f3d4bcf4d0b4dd9d4c4a5c5..7beb4e50f41bb7ff302c2ec5d9ffc9742fe6b07f 100644 (file)
@@ -1,3 +1,4 @@
+barcat t1006-unvalued.in
 nan
  -1 negative  -------
  -2 negativer 
index 00afe4e790d68e9802866c10b3d3d3faf2dabfab..d6f6e21cf8ac5adacc0e22d79ea6eff40f449554 100644 (file)
@@ -1,3 +1,4 @@
+barcat t1008-unicode.in
 9324 A -<----+-=--->--------------------
  920 B -<-
  476 C -<
index db4df4b17cc3ac1350bc28f3b7801e3b151f6dea..b0986cfe62496908c413da2bd9e8e5b54576fd9b 100644 (file)
@@ -1,3 +1,4 @@
+barcat --markers= t1012-unmarked.in
  998 ---
 1987 -------
 2955 ----------
index fbcebb587193fad9162f23c4a6cc155728a45239..c30a976ded3aec64425d8d7fd0a4a1692d0fc40a 100644 (file)
@@ -1,3 +1,4 @@
+barcat --markers='atest 09998 b200v c15000 0test' t1019-invalid_marker.in
 Unknown marker a: test
 Invalid marker b: percentile 200 out of bounds
 Unknown marker 0: test
index 83e28714a8a2a3a405db7d34d9b70da2943cd25b..95faa9fe5b968bcca42f72f143f17477fcf6739b 100644 (file)
@@ -1,3 +1,4 @@
+barcat t1100-aligned.in
   1                             -
   2 prepend                     -<
   3:   append                   -<
index 83e28714a8a2a3a405db7d34d9b70da2943cd25b..664d110be14e920611ac5c34da52e32739072960 100644 (file)
@@ -1,3 +1,4 @@
+barcat -l30 t1101-wow_much_length.in
   1                             -
   2 prepend                     -<
   3:   append                   -<
index 667925c42babc6e4108a6e330e7c18252ff7707b..742279bb9b3bb7378659f643b63f7490ac51da27 100644 (file)
@@ -1,3 +1,4 @@
+barcat -l0 t1102-strip_contents.in
   1 ----
   2 -------
   3:---------<-
index 4f05457c1ce3864dc1790c0f183614e25389280b..1bd19c18d58a015e6391246850eb981bc5ec849e 100644 (file)
@@ -1,3 +1,4 @@
+barcat -l1 t1103-only_separators.in
   1  ----
   2  -------
   3: ---------<-
index 3f86a771e8716334e407c97c1a6d17ce2d1a8b11..e1446a0e9b50b75d22bed988865015ec6daf57be 100644 (file)
@@ -1,3 +1,4 @@
+barcat -l5 t1104-abbreviate_contents.in
   1     ---
   2 pr… ------
   3:  … --------<-
index 9ff681d9c34900cb47acc51a3fdeb7ddd578d0df..cc550d42f75d4b462015b5af392ccd8be1b4b224 100644 (file)
@@ -1,3 +1,4 @@
+barcat -l50% t1105-length_percentage.in
   1                    --
   2 prepend            ---
   3:   append          ----<
index 67e5e7b1043d4338af1d9cdb7f83a9674e4e3edc..b877e25e31a2c51e23e9c5e496c4eff6cb758c72 100644 (file)
@@ -1,3 +1,4 @@
+barcat -l-30 t1106-forced_length.in
   1                               <
   2 prepend                       <
   3:   append                     <+
index 88e071307116796bdc20e89501f7b2d8c40b5068..4c33ffc664dcd4f6942dba2dcb2cd0c59cbd7b41 100644 (file)
@@ -1,3 +1,4 @@
+barcat -u t1200-unaligned.in
 1                             -
  2 prepend                     --
        3:   append                   --<
index d8bf8d1b12c82473349097cff8d27978ffee9354..6c36af75471b9d6dfab98e1e6fe4131232245f3f 100644 (file)
@@ -1,3 +1,4 @@
+barcat -uw1 t1201-unchanged.in
 1                             
  2 prepend                     
        3:   append                   
index bc00f500cbafa89c3ca77bab7b36e3297b4f7224..1a1d74ddce50e8825d4fa462ddcf8e2462a389e6 100644 (file)
@@ -1,3 +1,4 @@
+barcat -ul8 t1202-abbreviate_total.in
 1      ---
  2 pre… -------
        3:   … --------<-
index 76ed8f437ed5836a45b010fbe3666628246cc1d7..2cd4e965f9b7bafe2d1b77d3d8b047871fc931e7 100644 (file)
@@ -1,3 +1,4 @@
+barcat -e t1260-powers_of_ten.in
      1 
     10 ------
    100 ----------<
index e1cd17a42ceb6f147e468ecbd2e75cb68e3dcc28..a218dce52c0ca92c82ddd5adb6dd7c1f5d968fed 100644 (file)
@@ -1,3 +1,4 @@
+barcat -e t1261-binary_powers.in
                    1 2^0  
                    2 2^1  
                    4 2^2  
index 018283a444b055d78c20b81f85f63fd65b8d9770..186ba9812e34aa5ddfd8679b0647916bc2c893dc 100644 (file)
@@ -1,3 +1,4 @@
+barcat -e t1262-powers_of_tenths.in
 1e-5 
 1e-4 
 1e-3 
index bf25b3d8c8419ce0f050cff35685f6ccdce242c6..264a0cb71e2fbbd3b3a2d63a7a144345c80d98d9 100644 (file)
@@ -1,3 +1,4 @@
+barcat -f2 t1300-field_number.in
 1 2  3 4    ---
 10 20 30 40 -------<+--=------>---------
 3 16  9 123 -------<
index 1dad1edbf992ceb0c1826aa553f638311ec8c790..807382cc278be96731ab8742f4c5a66b045ef236 100644 (file)
@@ -1,3 +1,4 @@
+barcat -ftime= t1301-field_grep.in
 PING google.com(ams15s40-in-x0e.1e100.net (2a00:1450:400e:80d::200e)) 56 data bytes
 ... icmp_seq=1 9.92 ms   -----------+-
 ... icmp_seq=2 9.38 ms   -----------+
index be594b701e56348a9f979b9431580dc40090e3c3..ece7c78c16ef5b19617a5fa6e834117b00572b25 100644 (file)
@@ -1 +1,2 @@
+barcat -f\( ?64
 Unmatched ( in regex; marked by <-- HERE in m/( <-- HERE / for option field
index 10d10df81d21717f066a67228fc0602f02e24803..a6cbc3cb50c5aee7274b5df4a561b6ca06867689 100644 (file)
@@ -1,3 +1,4 @@
+barcat -f+1 t1305-numeric_field.in
 1
 numeric 1   2 3                ------=-+
 -1      -  2-3                 ------=-+
index 295fd1800bd074e46aa88f93cc2e010629074822..149b5fe8a8badc33108923b365320e9a2a178dd4 100644 (file)
@@ -1,3 +1,4 @@
+barcat -f',\K' t1310-currency.in
 Data Source in SDW: null
 ,EXR.D.USD.EUR.SP00.A
 ,"ECB reference exchange rate, US dollar/Euro, 2:15 pm (C.E.T.)"
index 4d0a4ce1b255fd98cc92e5045bdbdda9704ca5ad..e4e13cb14444fe8aee5ec67899919c208562bd0b 100644 (file)
@@ -1,3 +1,4 @@
+barcat -L6- -f',([0-9.]{5})' --value-length=6 --minval=1 t1311-currency_zoom.in
 2019-09-23 1.098 ---<
 2019-09-20 1.103 ---<
 2019-09-19 1.106 ---<
index 35483c4898c27c4c3d564050f5e3ce0a6c4b77a8..78c87f7f394ce629a004e2e9b7ee7e3580b6afc4 100644 (file)
@@ -1,3 +1,4 @@
+barcat -f, --value-length=7 --minval=1.1 --maxval=1.11 -L10-30 -s t1312-currency-crop.in
 2019-09-17 1.1026 ------
 2019-09-16 1.1031 -------
 2019-09-13 1.1096 ---------------------
index 7893e18bc5c1960545575e75b1d69dc93f9c4b49..466644b8f0193036bf3f12765bcccb7bebdc7ac2 100644 (file)
@@ -1,3 +1,4 @@
+barcat -f'([.0-9]+)(?=,m)' t1320-earthquakes.in
 time,latitude,longitude,depth,mag,magType,nst,gap,dmin,rms,net,id,updated,place,type,horizontalError,depthError,magError,magNst,status,locationSource,magSource
 2019-09-23T13:32:01.060Z,36.0413322,-120.2453308,13.57,2.48,md,26,131,0.1773,0.12,nc,nc73278290,2019-09-23T14:03:45.416Z,"11km WNW of Avenal, CA",earthquake,0.53,1.66,0.23,16,automatic,nc,nc                                               
 2019-09-23T13:16:57.170Z,36.0901667,-117.8598333,5.57,1.33,ml,18,89,0.02765,0.13,ci,ci38853575,2019-09-23T13:20:31.134Z,"9km ENE of Coso Junction, CA",earthquake,0.3,0.49,0.274,14,automatic,ci,ci                                          
index 33d34fb2bf4aca87ca4f2d1f211e44e50a83eed7..29917c0a2634845941f7d2d475c7f9770a9b43ad 100644 (file)
@@ -1,3 +1,4 @@
+barcat -f'(?<=\()' t1330-pokemon.in
 001 Bulbasaur (  6.9 kg 0.71 m 0.69)    
 002 Ivysaur ( 13.0 kg 0.99 m 0.042)     
 003 Venusaur (100.0 kg 2.01 m 0.017)    
index badb446b2c830ba4a0c1a210fc91987254cd5801..965abe11138a4030db0f0bc0bb0bcefb3c01f687 100644 (file)
@@ -1,3 +1,4 @@
+barcat -H t1401-magnitude.in
  10p 
 200p 
 3.0n 
index a09503f630334a65ce8acd8c64a528076299105b..ac71372ff18c4bedaddff455f15dcdb5e9802fe3 100644 (file)
@@ -1,3 +1,4 @@
+barcat -H -w1 t1402-rounded.in
 999k -  
 1.0M +  
 1.0M ++ 
index 97fd1ef99a1f0be3070395ac6010dd7bea728368..5f6bf9ca4e4ac903af5d05d37e4a7f1abe738bc4 100644 (file)
@@ -1,3 +1,4 @@
+barcat -H t1403-precision.in
   1  
 1.0  
 2.0k 
index 78221cc15301a82ed35a56413d352ea20332f0f0..4456d9e8a544822dd3dc340b983aca285dab5d27 100644 (file)
@@ -1,3 +1,4 @@
+barcat -H t1404-minitude.in
  -10p   ------------------------------=+|
 -200p   ------------------------------=+|
 -3.0n   ------------------------------=+|
index 937b051a1cddd98e76206dfc9ff923ee59700126..9ec5f8e476a7f474de3412c65f0edf3e2fcb9121 100644 (file)
@@ -1,3 +1,4 @@
+barcat -Hes t1405-megametric.in
  30e-34 
 300e-33 
 3.0e-32 
index 778c59895ad2b4ae05525dce6431fb7509122cbd..d5f28940c7cd01c248f677cf5d65e9fafadbbd7d 100644 (file)
@@ -1,3 +1,4 @@
+barcat --sexagesimal t1421-sexy_time.in
  0:00:00 
  0:00:01 
  0:00:01 
index cba86f6672b25d0068b6d4a0638d12dfa8f28416..e43f516a88aef0753f69e4eea988db489fba8360 100644 (file)
@@ -1,3 +1,4 @@
+barcat --sexagesimal -H -sC t1422-all_the_time.in
 \e[90m0:00:00\e[0m      -
 \e[90m24:00:00\e[0m      ---\e[36m=\e[0m---
 \e[32m111:11:11\e[0m long ---\e[36m=\e[0m--------------------------
index a0c3e31a18c0a70237f4e0e266cadf958194767e..82d3792d8c04d1e48f2cec15d72557568dcdf31e 100644 (file)
@@ -1,3 +1,4 @@
+barcat -L3 t1501-end_limit.in
  998 ------------
 1987 ------------------------
 2955 -----------------------------------
index 9bc34dcf07a1b9833595a02d851d4daecca38c02..1bd4cc95a7f6384a2ee7e1427d8d81736ec39d4e 100644 (file)
@@ -1,3 +1,4 @@
+barcat -L9- t1502-start_limit.in
 7833 -----------------<----=-+--
 8415 -----------------<----=-+----
 8912 -----------------<----=-+----->
index 7d861331c53eb23b8a142bba8f62721243b5bc0b..e9c25197c8c626fec5f49825ba8eb27aac019ef1 100644 (file)
@@ -1,2 +1,3 @@
+barcat -L1-2 t1503-partial.in
   1           -------------
   2 prepend   --------------------------
index 6bf764d36120f725f30c44bd91af2e2bf48757ad..e7d3bba31ccde46bd3766f6ec97118d0cb53c3aa 100644 (file)
@@ -1,3 +1,4 @@
+barcat -L-3 t1504-bottom_limit.in
 3350 ------------
 2392 --------
 1411 -----
index 5ba6aa3b901460ca2981b643fe4e0439456d397e..d32abfd03ab3e56af8bfb62ba104ed1f21415315 100644 (file)
@@ -1,2 +1,3 @@
+barcat -L-4-3 t1505-bottom_range.in
 4274 -----------------------------------
 3350 ---------------------------
deleted file mode 120000 (symlink)
index 0f0f4568089fbff52d00a2e7cc0355f5e7b870bd..0000000000000000000000000000000000000000
+++ /dev/null
@@ -1 +0,0 @@
-t1505-bottom_range_-L-4-3_#TODO.out
\ No newline at end of file
new file mode 100644 (file)
index 0000000000000000000000000000000000000000..cb576944fb00e4c86ced486cc9e74e33ac74fc64
--- /dev/null
@@ -0,0 +1,3 @@
+barcat -L-4+2 t1506-limit_offset.in
+4274 -----------------------------------
+3350 ---------------------------
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..625a5dabab888aef3300016dd068681fb72a44ef 100644 (file)
@@ -0,0 +1 @@
+barcat -L-5 t1514-limit_beyond_end.in
index dffcc7d1c6706239948dca2d5ed1b362918379dc..23a14cb7b3ca4a2f6ed246c000e1883acd9db15f 100644 (file)
@@ -1 +1,2 @@
+barcat -sL0 t1601-integer_statistics.in
 6 total in 3 values (1 min, 2.00 avg, 3 max)
index 29557a12b3a0de484d06629ed48933771fe7a27a..fa625b474ab9d4e9fea5bf2ac3177dd6c8816779 100644 (file)
@@ -1 +1,2 @@
+barcat -sL0 t1602-float_statistics.in
 -7.459 total in 16 values over 18 lines (-3 min, -0.47 avg, 2 max)
index 5d913fbfb9796a7ab925cbb5454eba4ff4f831f4..be68f1dca951fadb86f0a358f312821fb2f3d85f 100644 (file)
@@ -1,3 +1,4 @@
+barcat -sL2- t1603-added_statistics.in
  920 B -<-
  476 C -<
  619 Ĉ -<
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..d79e5caa2b2890be620bfec50a5206b2337164cf 100644 (file)
@@ -0,0 +1 @@
+barcat t1700-empty_input.in
index 71d67cc1e1fe07b81fb2f2e49a16ada36f5c1dcb..13e52528aad7de07c0f7b55df0a7855fa4ebb042 100644 (file)
@@ -1 +1,2 @@
+barcat -1 ?64
 Unknown option: 1
index ff95acde3ff2c34ebe8f73648e299567618e7d17..23c18dfa1c13f97523f8e7d37393912079586805 100644 (file)
@@ -1 +1,2 @@
+barcat -- 0
 0 
index 3ad53e9d155525c0613476208156fec7a30d44b7..fa2b264101556609f9c1f9174c9d0b58fd1d42ee 100644 (file)
@@ -1 +1,2 @@
+barcat -- 1
 1 -------------------------------------+
index e844d7509ae448e863dfc3c7c45654dea66b0cd6..fdfde7836b09e6b7d4e17c69091559ef216a00b7 100644 (file)
@@ -1,3 +1,4 @@
+barcat -- 1 4 8 2 6 3 9 5 2
 1 ----
 4 -----------<---+-
 8 -----------<---+-=---->-----------
index 162bba291419591ba917c2bb00eedcf2a2fcb3f9..fbca7eb7e1fcf4cecfe193bfddd918e6a84daefa 100644 (file)
@@ -1,2 +1,3 @@
+barcat -- -1 1
 -1 
  1 -----------------|------------------>
index 3ad53e9d155525c0613476208156fec7a30d44b7..7882fa1651db1c711126bb2889ba57243f730bdf 100644 (file)
@@ -1 +1,2 @@
+barcat -C -M 1
 1 -------------------------------------+
index f69120540831f6a1cb5343cae8884f0d5d4f4da4..016b74a15cd004d30dae5ffbe63be9903053dc77 100644 (file)
@@ -1,3 +1,4 @@
+barcat -M 1 -l 2 hi 3 --st 4 -- 5 -1 --version
  1 -----|------
 …
  3 -----|-----------<-=---+-
index 87046e44cd089c2ec1df721e478192fab38da641..e3abc75467b437895725acbbda13266cdc88099d 100644 (file)
@@ -1 +1,2 @@
+barcat --palette=none ?64
 Empty palette resulting from "none"
index e0c177da7464564fd335416a2a9e3de4f6c01c24..7e476d29289a64e7cbef30c20e32d64e902e7ec2 100644 (file)
@@ -1,3 +1,4 @@
+barcat -t-1 -ftime='\K' t1801-progress.in ?
 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   --------+
index 9fe32ca3e39271543605d38f21b0226dff85618d..1c34cc139a35f3867187fd207c671506ee9def18 100644 (file)
@@ -1,3 +1,4 @@
+barcat -Cs --header t1901-technicolor.in
 \e[31m         -3\e[90m-\e[36m+\e[32m                  2\e[90m-\e[36m+\e[0m
 \e[31m         -3\e[0m       
 \e[90m     -2.449\e[0m       --
index 08c4555ebbff98a69ba2bb5c23abef953ab122d9..49acee8dd6171bfecb9b8f743140b0dcf2af7211 100644 (file)
@@ -1,3 +1,4 @@
+barcat -f, --value-length=7 --minval=1.1 --maxval=1.11 -L10-30 -Cs t1912-currency_part.in
 2019-09-17\e[90m 1.1026\e[0m ------
 2019-09-16\e[90m 1.1031\e[0m -------
 2019-09-13\e[90m 1.1096\e[0m ---------------------
index 354aa862ed283ae466a83cf34940b1a09f319695..52de5be4250cc6ea5168f09b71114560c19b2bbb 100644 (file)
@@ -1,3 +1,4 @@
+barcat -C --palette= t1920-colorwave_uncolored.in
                     1 ---\e[36m<\e[0m---\e[36m+\e[0m\e[36m|\e[0m----\e[36m>\e[0m----
     0.987688340623216 ---\e[36m<\e[0m---\e[36m+\e[0m\e[36m|\e[0m----\e[36m>\e[0m----
     0.951056516406084 ---\e[36m<\e[0m---\e[36m+\e[0m\e[36m|\e[0m----\e[36m>\e[0m----
index db038b3ead308a86d53737ae0a166f0a7f084f48..54ffb8224ee851b54453aa173dea4179d2a5f141 100644 (file)
@@ -1,3 +1,4 @@
+barcat -C --palette=1 t1921-colorwave_unicolor.in
 \e[1m                    1\e[0m ---\e[36m<\e[0m---\e[36m+\e[0m\e[36m|\e[0m----\e[36m>\e[0m----
 \e[1m    0.987688340623216\e[0m ---\e[36m<\e[0m---\e[36m+\e[0m\e[36m|\e[0m----\e[36m>\e[0m----
 \e[1m    0.951056516406084\e[0m ---\e[36m<\e[0m---\e[36m+\e[0m\e[36m|\e[0m----\e[36m>\e[0m----
index 3b43340761529fb71151d648ac84e2ba4e1e0cb0..66c8a8aaee11b07b49e91950c90542af9ad11ead 100644 (file)
@@ -1,3 +1,4 @@
+barcat -C --palette=40,0 t1922-colorwave_duocolor.in
 \e[0m                    1\e[0m ---\e[36m<\e[0m---\e[36m+\e[0m\e[36m|\e[0m----\e[36m>\e[0m----
 \e[0m    0.987688340623216\e[0m ---\e[36m<\e[0m---\e[36m+\e[0m\e[36m|\e[0m----\e[36m>\e[0m----
 \e[0m    0.951056516406084\e[0m ---\e[36m<\e[0m---\e[36m+\e[0m\e[36m|\e[0m----\e[36m>\e[0m----
index 35d26fa613cad1445c9eb8431a529bb0205e3e8e..c85b16f5bd3ffbd73bab76502dfc9151a91fe9cd 100644 (file)
@@ -1,3 +1,4 @@
+barcat -C --palette=41,0,42 t1923-colorwave_tricolor.in
 \e[42m                    1\e[0m ---\e[36m<\e[0m---\e[36m+\e[0m\e[36m|\e[0m----\e[36m>\e[0m----
 \e[0m    0.987688340623216\e[0m ---\e[36m<\e[0m---\e[36m+\e[0m\e[36m|\e[0m----\e[36m>\e[0m----
 \e[0m    0.951056516406084\e[0m ---\e[36m<\e[0m---\e[36m+\e[0m\e[36m|\e[0m----\e[36m>\e[0m----
index c2a4696e41989eedff511120010e22a95cfb786f..4bc656e4bb2f299bcae4e761d96694a140f8093f 100644 (file)
@@ -1,3 +1,4 @@
+barcat -C --palette=31,41,43,42,32 t1924-colorwave_custom_palette.in
 \e[32m                    1\e[0m ---\e[36m<\e[0m---\e[36m+\e[0m\e[36m|\e[0m----\e[36m>\e[0m----
 \e[42m    0.987688340623216\e[0m ---\e[36m<\e[0m---\e[36m+\e[0m\e[36m|\e[0m----\e[36m>\e[0m----
 \e[42m    0.951056516406084\e[0m ---\e[36m<\e[0m---\e[36m+\e[0m\e[36m|\e[0m----\e[36m>\e[0m----
index bccb24948de753b7973effa385a79c232006fc6d..7a3f8ae477c85c0cae55ff4eef108e40abc0edca 100644 (file)
@@ -1,3 +1,4 @@
+barcat -C --palette=fire t1931-colorwave_fire.in
 \e[96m                    1\e[0m ---\e[36m<\e[0m---\e[36m+\e[0m\e[36m|\e[0m----\e[36m>\e[0m----
 \e[97m    0.987688340623216\e[0m ---\e[36m<\e[0m---\e[36m+\e[0m\e[36m|\e[0m----\e[36m>\e[0m----
 \e[97m    0.951056516406084\e[0m ---\e[36m<\e[0m---\e[36m+\e[0m\e[36m|\e[0m----\e[36m>\e[0m----
index d33a74e5f2326292ac6c19ed6b8a0b426e01dad3..f5c3693852121e3a922b5d23c8e79666283ab508 100644 (file)
@@ -1,3 +1,4 @@
+barcat -C --palette=fire256 t1932-colorwave_fireworks.in
 \e[38;5;159m                    1\e[0m ---\e[36m<\e[0m---\e[36m+\e[0m\e[36m|\e[0m----\e[36m>\e[0m----
 \e[38;5;231m    0.987688340623216\e[0m ---\e[36m<\e[0m---\e[36m+\e[0m\e[36m|\e[0m----\e[36m>\e[0m----
 \e[38;5;231m    0.951056516406084\e[0m ---\e[36m<\e[0m---\e[36m+\e[0m\e[36m|\e[0m----\e[36m>\e[0m----
index 140e11cfa1a844f53e327796d8078a828c2fb7ec..0552106adf334bcd40f1bbca300bf814a0c39290 100644 (file)
@@ -1 +1,2 @@
+barcat -C --spark --palette=rainbow t1933-lolcat.in
 \e[38;5;196m█\e[38;5;197m█\e[38;5;197m█\e[38;5;198m█\e[38;5;199m█\e[38;5;201m▇\e[38;5;129m▇\e[38;5;57m▆\e[38;5;27m▆\e[38;5;39m▅\e[38;5;51m▅\e[38;5;48m▄\e[38;5;46m▃\e[38;5;118m▃\e[38;5;190m▂\e[38;5;220m▂\e[38;5;208m▁\e[38;5;202m▁\e[38;5;196m▁\e[38;5;196m▁\e[38;5;196m▁\e[38;5;196m▁\e[38;5;196m▁\e[38;5;202m▁\e[38;5;208m▁\e[38;5;220m▂\e[38;5;190m▂\e[38;5;118m▃\e[38;5;46m▃\e[38;5;48m▄\e[38;5;50m▄\e[38;5;39m▅\e[38;5;27m▆\e[38;5;57m▆\e[38;5;129m▇\e[38;5;201m▇\e[38;5;199m█\e[38;5;198m█\e[38;5;197m█\e[38;5;197m█\e[38;5;196m█\e[38;5;197m█\e[38;5;197m█\e[38;5;198m█\e[38;5;199m█\e[38;5;201m▇\e[38;5;129m▇\e[38;5;57m▆\e[38;5;27m▆\e[38;5;39m▅\e[38;5;51m▅\e[38;5;48m▄\e[38;5;46m▃\e[38;5;118m▃\e[38;5;190m▂\e[38;5;220m▂\e[38;5;208m▁\e[38;5;202m▁\e[38;5;196m▁\e[38;5;196m▁\e[38;5;196m▁\e[38;5;196m▁\e[38;5;196m▁\e[38;5;202m▁\e[38;5;208m▁\e[38;5;220m▂\e[38;5;190m▂\e[38;5;118m▃\e[38;5;46m▃\e[38;5;48m▄\e[38;5;50m▄\e[38;5;39m▅\e[38;5;27m▆\e[38;5;57m▆\e[38;5;129m▇\e[38;5;201m▇\e[38;5;199m█\e[38;5;198m█\e[38;5;197m█\e[38;5;197m█\e[0m
index 70f8cf12cb07653e4c0e5ccbb5915f3005bfd34e..0ac871f12130107fd7b39784ec6d6c1fe2e73fd2 100644 (file)
@@ -1 +1,2 @@
+barcat --spark t2100-sparkwave.in
 █████████▇▇▇▆▆▅▅▄▄▃▃▂▂▂▁▁▁▁▁▁▁▁▁▁▁▂▂▂▃▃▄▄▅▅▆▆▇▇▇████████████▇▇▆▆▅▅▄▄▃▃▃▂▂▁▁▁▁▁▁▁▁▁▁▁▁▂▂▃▃▄▄▅▅▆▆▆▇▇██
index 01ea973ab7a2df16aeba1146c1433e49d2b470a2..41ad8f3e2594dd5a3098479517e002ea86261609 100644 (file)
@@ -1,3 +1,4 @@
+barcat --spark -w9 t2103-spark-lines.in
 █████████
 ▇▇▇▆▆▅▅▄▄
 ▃▃▂▂▂▁▁▁▁
index 771c1a8ad3105178cfc9ebd0bc8af31e1978e92f..a46d0eb038be73755cc4d6317b606203fc714044 100644 (file)
@@ -1 +1,2 @@
+barcat -a --spark t2105-spark_ascii.in
 OOOOOOOOOOOOOoooooo...................ooooooOOOOOOOOOOOOOOOOOOOOooooo....................oooooOOOOOO
index 28d14454c380441fa2b6f562072a1cd641c06e22..723e8b717b66644ee9b8efef853d1a433b96acf9 100644 (file)
@@ -1 +1,2 @@
+barcat --spark --indicators=-123456789 t2109-spark_distribution.in
 123456789
index 753f76c13732f892640bae3f05c2c59a5ac89d88..e2342a37386ffad42a2d39e4af03feb923b4c0c8 100644 (file)
@@ -1 +1,2 @@
+barcat --spark --indicators=XO t2110-spark_binary.in
 XOOOOXOOXOOOOXX
index 6662c526e032eb3576acbe168b2b684d9bdfc416..477e736f6fd0cf9cb84f397ba058d703142d17d3 100644 (file)
@@ -1 +1,2 @@
+barcat --spark --indicators=-·•O t2111-spark_unicode.in
 -··•·-·•-O•··--
index 86eb132b155142a620b981dc78b7a38e51ee2d23..85e0449cb46f4da2350ec4b2f0b55c7c73266c23 100644 (file)
@@ -1 +1,2 @@
+barcat --spark --indicators=1 t2115-spark-oneliner.in
 111111111111111
index 861c5d8be8d33cc82c8843658a18b31a90334147..d432bbd464c95db563d6b19d15111bdbd3b90a83 100644 (file)
@@ -1,3 +1,4 @@
+barcat --indicators= t2120-prefixed.in
  nan
 ▍ -1 negative  -------
 ▏ -2 negativer 
index 8126effc25b8d572e833d19f8cc13c151e8fcc97..060f71f534cef19b21668a22a7e7a2dc4f058b59 100644 (file)
@@ -1,3 +1,4 @@
+barcat --indicators=# t2122-outcommented.in
 #nan
 # -1 negative  -------
 # -2 negativer 
index 0f13d5448560f5daeda974ae9dd997ab1fec4e0f..75b3f6123156c55c9ac5a66c802997adaa936abd 100644 (file)
@@ -1 +1,2 @@
+barcat --spark --maxval=1 t2130-overspark.in
  ▁██▆ ▆█ ████  
index be3a08be5147570309679ddda402d3b551826442..3dcf533008680a6f949f460ac5f1a864bb75a1c9 100644 (file)
@@ -1,2 +1,3 @@
+barcat --spark --indicators=012345 -Cs --maxval=1 -L17 t2180-spark_combined.in
 \e[31m1\e[90m1\e[90m2\e[90m3\e[90m4\e[90m4\e[90m4\e[90m4\e[90m4\e[90m4\e[90m3\e[90m4\e[32m5\e[32m50\e[32m5\e[90m2\e[0m
 -7.459 of \e[1m-7.459\e[0m total in 16 values over 18 lines (\e[31m-3\e[0m min, \e[36m-0.47\e[0m avg, \e[32m2\e[0m max)
index 61106938e54b42503358656dee651bee7d335ba3..2757ad80289cd3df2cc8362bc1f775da2fbc1810 100644 (file)
@@ -1,3 +1,4 @@
+barcat -aHl7 t2201-ascii.in
 123u micro -------------<--=+---------|
 100m long> -------------<--=+---------|-
   -1        -------------<--=+-
index 7ab312d64938ce2498d5e32977ac7d5baf610ad0..a662a207e381e15b20ff58d316fa9ceb50d58c9d 100644 (file)
@@ -1,3 +1,4 @@
+barcat --graph-format=* t2220-starry_line.in
 123e-6 micro     **********<*=+*******|
     .1 long line **********<*=+*******|*
     -1           **********<*=+*
index e14e55906d1e1acfd389b30e936518d7e7d25222..b1fc8a78ef8c9976c8afd0b0285aa889acddfd10 100644 (file)
@@ -1,3 +1,4 @@
+barcat --graph-format=─ t2221-unicode_line.in
 123e-6 micro     ──────────<─=+───────|
     .1 long line ──────────<─=+───────|─
     -1           ──────────<─=+─
index 38ec6b6a15979ddbfc80ba27f666699d9a51841e..498640279b72a1be9db31a1f091e35249807d7e3 100644 (file)
@@ -1,3 +1,4 @@
+barcat --markers= t2250-unremarkable.in
 123e-6 micro     ----------------------
     .1 long line -----------------------
     -1           ---------------
index bd2b625d1ea1148748659cdd8b2c8f5b02f48c56..90ed5b17b999325864c6925a846283609227b7c9 100644 (file)
@@ -1,3 +1,4 @@
+barcat --markers=:-2 t2255-value_marker.in
 123e-6 micro     ------:---------------
     .1 long line ------:----------------
     -1           ------:--------
index 2cb00c083576b1fac122e7e084fa2f56ffd94967..3ad8e95fad515b4a63b74612a579e3a828199b7d 100644 (file)
@@ -1,3 +1,4 @@
+barcat --mark='?0 !0' t2256-remarkable.in
 123e-6 micro     ---------------------!
     .1 long line ---------------------!-
     -1           ---------------
index c23950d9bd57546cb4dc86b042ab492b99621716..d4910bb6865fa884de29f40238d649acea35d776 100644 (file)
@@ -1,3 +1,4 @@
+barcat --mark=:/1 t2258-repeat_markers.in
 1 ---:
 2 ---:---:
 3 ---:---:---:-
index 4cd6f7cc0eb719b2b5883411190f6ee859354ac1..2436e69824d2595f7939c3a26de83ed736f5a252 100644 (file)
@@ -1,3 +1,4 @@
+barcat -e --markers=+/1 t2259-log_axis.in
      1 
     10 ----+-
    100 ----+-----+
index 56bfc3f951a8840df1af2118ac5bd3270156fa51..c4f7e425cce0785e4564183e3508929dd9fd9151 100644 (file)
@@ -1,3 +1,4 @@
+barcat --markers=')0v (100v' t2264-minmax_percent.in
 123e-6 micro     (---------------------
     .1 long line (---------------------)
     -1           (--------------
index 2482fb0761cf500171e229117d8117217e545b6d..fec93e015d152b17407aefd0837a3320a9c55beb 100644 (file)
@@ -1,3 +1,4 @@
+barcat --graph-format=─ --markers='550v 00v 11v 999v ^100v' t2265-percentile_markers.in
 123e-6 micro     ──9──────────5────────
     .1 long line ──9──────────5────────1
     -1           ──9──────────5─
index bcbfbf9ab36fc3ca31ede5a4b1fd044aa9d39746..30b59bfb93574c9e37cd897a54440424bb66f7ee 100644 (file)
@@ -1,3 +1,4 @@
+barcat --graph-format=─ --markers='┼avg ╫50v ┬-2' t2295-unicode_in_my_bar.in
 123e-6 micro     ──────┬─────┼╫────────
     .1 long line ──────┬─────┼╫─────────
     -1           ──────┬─────┼╫─