From e2245af4584e8c6c46a472c78df541a65c0ee04c Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Thu, 24 Nov 2022 21:44:24 +0100 Subject: [PATCH] t/regress: prepend commands to output files, cmddiff to compare Input file names no longer necessarily identical, nor do parameters' special characters have to be included (renames in separate commit). --- t/cmddiff | 61 +++++++++++++++++++ t/regress.t | 37 +---------- t/t0001-version_-a_--version.out | 1 + t/t0002-usage_-h_|wc_-l.out | 1 + t/t0003-invalid_options_-Az_?64.out | 1 + t/t1001-seq.out | 1 + t/t1002-sinewave.out | 1 + t/t1003-sinine.out | 1 + t/t1005-float.out | 1 + t/t1006-unvalued.out | 1 + t/t1008-unicode.out | 1 + t/t1012-unmarked_--markers=.out | 1 + ...test\\_09998\\_b200v\\_c15000\\_0test.out" | 1 + t/t1100-aligned.out | 1 + t/t1101-wow_much_length_-l30.out | 1 + t/t1102-strip_contents_-l0.out | 1 + t/t1103-only_separators_-l1.out | 1 + t/t1104-abbreviate_contents_-l5.out | 1 + t/t1105-length_percentage_-l50%.out | 1 + t/t1106-forced_length_-l-30.out | 1 + t/t1200-unaligned_-u.out | 1 + t/t1201-unchanged_-uw1.out | 1 + t/t1202-abbreviate_total_-ul8.out | 1 + t/t1260-powers_of_ten_-e.out | 1 + t/t1261-binary_powers_-e.out | 1 + t/t1262-powers_of_tenths_-e.out | 1 + t/t1300-field_number_-f2.out | 1 + t/t1301-field_grep_-ftime=.out | 1 + "t/t1302-invalid_field_regex_-f\\(.out" | 1 + t/t1305-numeric_field_-f+1.out | 1 + "t/t1310-currency_-f',\\K'.out" | 1 + ...0-9.]{5})'_--value-length=6_--minval=1.out | 1 + ..._--minval=1.1_--maxval=1.11_-L10-30_-s.out | 1 + t/t1320-earthquakes_-f'([.0-9]+)(?=,m)'.out | 1 + "t/t1330-pokemon_-f'(?<=\\()'.out" | 1 + t/t1401-magnitude_-H.out | 1 + t/t1402-rounded_-H_-w1.out | 1 + t/t1403-precision_-H.out | 1 + t/t1404-minitude_-H.out | 1 + t/t1405-megametric_-Hes.out | 1 + t/t1421-sexy_time_--sexagesimal.out | 1 + t/t1422-all_the_time_--sexagesimal_-H_-sC.out | 1 + t/t1501-end_limit_-L3.out | 1 + t/t1502-start_limit_-L9-.out | 1 + t/t1503-partial_-L1-2.out | 1 + t/t1504-bottom_limit_-L-3.out | 1 + t/t1505-bottom_range_-L-4-3.out | 1 + t/t1506-limit_offset_-L-4+2_#TODO.out | 4 +- t/t1514-limit_beyond_end_-L-5.out | 1 + t/t1601-integer_statistics_-sL0.out | 1 + t/t1602-float_statistics_-sL0.out | 1 + t/t1603-added_statistics_-sL2-.out | 1 + t/t1700-empty_input.out | 1 + t/t1701-number_option_-1_?64.out | 1 + t/t1710-zero_value_--_0.out | 1 + t/t1711-value_parameter_--_1.out | 1 + ...-value_parameters_--_1_4_8_2_6_3_9_5_2.out | 1 + t/t1713-negative_value_--_-1_1.out | 1 + t/t1721-option_overrides_-C_-M_1.out | 1 + ...M_1_-l_2_hi_3_--st_4_--_5_-1_--version.out | 1 + ...731-unknown_palette_--palette=none_?64.out | 1 + "t/t1801-progress_-t-1_-ftime=\\K_?.out" | 1 + t/t1901-technicolor_-Cs_--header.out | 1 + ...--minval=1.1_--maxval=1.11_-L10-30_-Cs.out | 1 + t/t1920-colorwave_uncolored_-C_--palette=.out | 1 + t/t1921-colorwave_unicolor_-C_--palette=1.out | 1 + ...2-colorwave_duocolor_-C_--palette=40,0.out | 1 + ...olorwave_tricolor_-C_--palette=41,0,42.out | 1 + ...om_palette_-C_--palette=31,41,43,42,32.out | 1 + t/t1931-colorwave_fire_-C_--palette=fire.out | 1 + ...lorwave_fireworks_-C_--palette=fire256.out | 1 + ...33-lolcat_-C_--spark_--palette=rainbow.out | 1 + t/t2100-sparkwave_--spark.out | 1 + t/t2103-spark-lines_--spark_-w9.out | 1 + t/t2105-spark_ascii_-a_--spark.out | 1 + ...bution_--spark_--indicators=-123456789.out | 1 + ...0-spark_binary_--spark_--indicators=XO.out | 1 + ...k_--indicators=-\302\267\342\200\242O.out" | 1 + ...-spark-oneliner_--spark_--indicators=1.out | 1 + t/t2120-prefixed_--indicators=.out | 1 + t/t2122-outcommented_--indicators=#.out | 1 + t/t2130-overspark_--spark_--maxval=1.out | 1 + ...-indicators=012345_-Cs_--maxval=1_-L17.out | 1 + t/t2201-ascii_-aHl7.out | 1 + t/t2220-starry_line_--graph-format=*.out | 1 + ...code_line_--graph-format=\342\224\200.out" | 1 + t/t2250-unremarkable_--markers=.out | 1 + t/t2255-value_marker_--markers=:-2.out | 1 + t/t2256-remarkable_--mark='?0_!0'.out | 1 + t/t2258-repeat_markers_--mark=:/1.out | 1 + t/t2259-log_axis_-e_--markers=+/1.out | 1 + ...ax_percent_--markers=')0v_(100v'_#TODO.out | 1 + ...0_--markers='550v_00v_11v_999v_^100v'.out" | 1 + ...74avg_\342\225\25350v_\342\224\254-2'.out" | 1 + 94 files changed, 158 insertions(+), 35 deletions(-) create mode 100755 t/cmddiff mode change 120000 => 100644 t/t1506-limit_offset_-L-4+2_#TODO.out diff --git a/t/cmddiff b/t/cmddiff new file mode 100755 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"; +} diff --git a/t/regress.t b/t/regress.t index d7961cc..177cc8d 100755 --- a/t/regress.t +++ b/t/regress.t @@ -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)...]"; exit 64;; + -*) echo "Usage: $0 [...]"; 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" diff --git a/t/t0001-version_-a_--version.out b/t/t0001-version_-a_--version.out index 0ba5912..de73d0f 100644 --- a/t/t0001-version_-a_--version.out +++ b/t/t0001-version_-a_--version.out @@ -1 +1,2 @@ +barcat -a --version barcat =^,^= version 1.09 diff --git a/t/t0002-usage_-h_|wc_-l.out b/t/t0002-usage_-h_|wc_-l.out index 7facc89..55ac83f 100644 --- a/t/t0002-usage_-h_|wc_-l.out +++ b/t/t0002-usage_-h_|wc_-l.out @@ -1 +1,2 @@ +barcat -h |wc -l 36 diff --git a/t/t0003-invalid_options_-Az_?64.out b/t/t0003-invalid_options_-Az_?64.out index e8e36f1..73004fe 100644 --- a/t/t0003-invalid_options_-Az_?64.out +++ b/t/t0003-invalid_options_-Az_?64.out @@ -1,2 +1,3 @@ +barcat -Az ?64 Unknown option: A Unknown option: z diff --git a/t/t1001-seq.out b/t/t1001-seq.out index 6947d1e..5cf2317 100644 --- a/t/t1001-seq.out +++ b/t/t1001-seq.out @@ -1,3 +1,4 @@ +barcat t1001-seq.in 1 ------------- 2 ------------------------+ 3 ------------------------+----->------- diff --git a/t/t1002-sinewave.out b/t/t1002-sinewave.out index 21a416e..5524d32 100644 --- a/t/t1002-sinewave.out +++ b/t/t1002-sinewave.out @@ -1,3 +1,4 @@ +barcat t1002-sinewave.in 998 --- 1987 ------- 2955 ---------- diff --git a/t/t1003-sinine.out b/t/t1003-sinine.out index 62788d4..1a153ad 100644 --- a/t/t1003-sinine.out +++ b/t/t1003-sinine.out @@ -1,3 +1,4 @@ +barcat t1003-sinine.in 0.930507621912314 ---<----|----->---- 0.968912421710645 ---<----|----->----- 0.992197667229329 ---<----|----->----- diff --git a/t/t1005-float.out b/t/t1005-float.out index ad784ea..07b8f81 100644 --- a/t/t1005-float.out +++ b/t/t1005-float.out @@ -1,3 +1,4 @@ +barcat t1005-float.in -3 -2.449 -- -2 ---- diff --git a/t/t1006-unvalued.out b/t/t1006-unvalued.out index 940dfe4..7beb4e5 100644 --- a/t/t1006-unvalued.out +++ b/t/t1006-unvalued.out @@ -1,3 +1,4 @@ +barcat t1006-unvalued.in nan -1 negative ------- -2 negativer diff --git a/t/t1008-unicode.out b/t/t1008-unicode.out index 00afe4e..d6f6e21 100644 --- a/t/t1008-unicode.out +++ b/t/t1008-unicode.out @@ -1,3 +1,4 @@ +barcat t1008-unicode.in 9324 A -<----+-=--->-------------------- 920 B -<- 476 C -< diff --git a/t/t1012-unmarked_--markers=.out b/t/t1012-unmarked_--markers=.out index db4df4b..b0986cf 100644 --- a/t/t1012-unmarked_--markers=.out +++ b/t/t1012-unmarked_--markers=.out @@ -1,3 +1,4 @@ +barcat --markers= t1012-unmarked.in 998 --- 1987 ------- 2955 ---------- diff --git "a/t/t1019-invalid_marker_--markers=atest\\_09998\\_b200v\\_c15000\\_0test.out" "b/t/t1019-invalid_marker_--markers=atest\\_09998\\_b200v\\_c15000\\_0test.out" index fbcebb5..c30a976 100644 --- "a/t/t1019-invalid_marker_--markers=atest\\_09998\\_b200v\\_c15000\\_0test.out" +++ "b/t/t1019-invalid_marker_--markers=atest\\_09998\\_b200v\\_c15000\\_0test.out" @@ -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 diff --git a/t/t1100-aligned.out b/t/t1100-aligned.out index 83e2871..95faa9f 100644 --- a/t/t1100-aligned.out +++ b/t/t1100-aligned.out @@ -1,3 +1,4 @@ +barcat t1100-aligned.in 1 - 2 prepend -< 3: append -< diff --git a/t/t1101-wow_much_length_-l30.out b/t/t1101-wow_much_length_-l30.out index 83e2871..664d110 100644 --- a/t/t1101-wow_much_length_-l30.out +++ b/t/t1101-wow_much_length_-l30.out @@ -1,3 +1,4 @@ +barcat -l30 t1101-wow_much_length.in 1 - 2 prepend -< 3: append -< diff --git a/t/t1102-strip_contents_-l0.out b/t/t1102-strip_contents_-l0.out index 667925c..742279b 100644 --- a/t/t1102-strip_contents_-l0.out +++ b/t/t1102-strip_contents_-l0.out @@ -1,3 +1,4 @@ +barcat -l0 t1102-strip_contents.in 1 ---- 2 ------- 3:---------<- diff --git a/t/t1103-only_separators_-l1.out b/t/t1103-only_separators_-l1.out index 4f05457..1bd19c1 100644 --- a/t/t1103-only_separators_-l1.out +++ b/t/t1103-only_separators_-l1.out @@ -1,3 +1,4 @@ +barcat -l1 t1103-only_separators.in 1 ---- 2 ------- 3: ---------<- diff --git a/t/t1104-abbreviate_contents_-l5.out b/t/t1104-abbreviate_contents_-l5.out index 3f86a77..e1446a0 100644 --- a/t/t1104-abbreviate_contents_-l5.out +++ b/t/t1104-abbreviate_contents_-l5.out @@ -1,3 +1,4 @@ +barcat -l5 t1104-abbreviate_contents.in 1 --- 2 pr… ------ 3: … --------<- diff --git a/t/t1105-length_percentage_-l50%.out b/t/t1105-length_percentage_-l50%.out index 9ff681d..cc550d4 100644 --- a/t/t1105-length_percentage_-l50%.out +++ b/t/t1105-length_percentage_-l50%.out @@ -1,3 +1,4 @@ +barcat -l50% t1105-length_percentage.in 1 -- 2 prepend --- 3: append ----< diff --git a/t/t1106-forced_length_-l-30.out b/t/t1106-forced_length_-l-30.out index 67e5e7b..b877e25 100644 --- a/t/t1106-forced_length_-l-30.out +++ b/t/t1106-forced_length_-l-30.out @@ -1,3 +1,4 @@ +barcat -l-30 t1106-forced_length.in 1 < 2 prepend < 3: append <+ diff --git a/t/t1200-unaligned_-u.out b/t/t1200-unaligned_-u.out index 88e0713..4c33ffc 100644 --- a/t/t1200-unaligned_-u.out +++ b/t/t1200-unaligned_-u.out @@ -1,3 +1,4 @@ +barcat -u t1200-unaligned.in 1 - 2 prepend -- 3: append --< diff --git a/t/t1201-unchanged_-uw1.out b/t/t1201-unchanged_-uw1.out index d8bf8d1..6c36af7 100644 --- a/t/t1201-unchanged_-uw1.out +++ b/t/t1201-unchanged_-uw1.out @@ -1,3 +1,4 @@ +barcat -uw1 t1201-unchanged.in 1 2 prepend 3: append diff --git a/t/t1202-abbreviate_total_-ul8.out b/t/t1202-abbreviate_total_-ul8.out index bc00f50..1a1d74d 100644 --- a/t/t1202-abbreviate_total_-ul8.out +++ b/t/t1202-abbreviate_total_-ul8.out @@ -1,3 +1,4 @@ +barcat -ul8 t1202-abbreviate_total.in 1 --- 2 pre… ------- 3: … --------<- diff --git a/t/t1260-powers_of_ten_-e.out b/t/t1260-powers_of_ten_-e.out index 76ed8f4..2cd4e96 100644 --- a/t/t1260-powers_of_ten_-e.out +++ b/t/t1260-powers_of_ten_-e.out @@ -1,3 +1,4 @@ +barcat -e t1260-powers_of_ten.in 1 10 ------ 100 ----------< diff --git a/t/t1261-binary_powers_-e.out b/t/t1261-binary_powers_-e.out index e1cd17a..a218dce 100644 --- a/t/t1261-binary_powers_-e.out +++ b/t/t1261-binary_powers_-e.out @@ -1,3 +1,4 @@ +barcat -e t1261-binary_powers.in 1 2^0 2 2^1 4 2^2 diff --git a/t/t1262-powers_of_tenths_-e.out b/t/t1262-powers_of_tenths_-e.out index 018283a..186ba98 100644 --- a/t/t1262-powers_of_tenths_-e.out +++ b/t/t1262-powers_of_tenths_-e.out @@ -1,3 +1,4 @@ +barcat -e t1262-powers_of_tenths.in 1e-5 1e-4 1e-3 diff --git a/t/t1300-field_number_-f2.out b/t/t1300-field_number_-f2.out index bf25b3d..264a0cb 100644 --- a/t/t1300-field_number_-f2.out +++ b/t/t1300-field_number_-f2.out @@ -1,3 +1,4 @@ +barcat -f2 t1300-field_number.in 1 2 3 4 --- 10 20 30 40 -------<+--=------>--------- 3 16 9 123 -------< diff --git a/t/t1301-field_grep_-ftime=.out b/t/t1301-field_grep_-ftime=.out index 1dad1ed..807382c 100644 --- a/t/t1301-field_grep_-ftime=.out +++ b/t/t1301-field_grep_-ftime=.out @@ -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 -----------+ diff --git "a/t/t1302-invalid_field_regex_-f\\(.out" "b/t/t1302-invalid_field_regex_-f\\(.out" index be594b7..ece7c78 100644 --- "a/t/t1302-invalid_field_regex_-f\\(.out" +++ "b/t/t1302-invalid_field_regex_-f\\(.out" @@ -1 +1,2 @@ +barcat -f\( ?64 Unmatched ( in regex; marked by <-- HERE in m/( <-- HERE / for option field diff --git a/t/t1305-numeric_field_-f+1.out b/t/t1305-numeric_field_-f+1.out index 10d10df..a6cbc3c 100644 --- a/t/t1305-numeric_field_-f+1.out +++ b/t/t1305-numeric_field_-f+1.out @@ -1,3 +1,4 @@ +barcat -f+1 t1305-numeric_field.in 1 numeric 1 2 3 ------=-+ -1 - 2-3 ------=-+ diff --git "a/t/t1310-currency_-f',\\K'.out" "b/t/t1310-currency_-f',\\K'.out" index 295fd18..149b5fe 100644 --- "a/t/t1310-currency_-f',\\K'.out" +++ "b/t/t1310-currency_-f',\\K'.out" @@ -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.)" diff --git a/t/t1311-currency_zoom_-L6-_-f',([0-9.]{5})'_--value-length=6_--minval=1.out b/t/t1311-currency_zoom_-L6-_-f',([0-9.]{5})'_--value-length=6_--minval=1.out index 4d0a4ce..e4e13cb 100644 --- a/t/t1311-currency_zoom_-L6-_-f',([0-9.]{5})'_--value-length=6_--minval=1.out +++ b/t/t1311-currency_zoom_-L6-_-f',([0-9.]{5})'_--value-length=6_--minval=1.out @@ -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 ---< diff --git a/t/t1312-currency-crop_-f,_--value-length=7_--minval=1.1_--maxval=1.11_-L10-30_-s.out b/t/t1312-currency-crop_-f,_--value-length=7_--minval=1.1_--maxval=1.11_-L10-30_-s.out index 35483c4..78c87f7 100644 --- a/t/t1312-currency-crop_-f,_--value-length=7_--minval=1.1_--maxval=1.11_-L10-30_-s.out +++ b/t/t1312-currency-crop_-f,_--value-length=7_--minval=1.1_--maxval=1.11_-L10-30_-s.out @@ -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 --------------------- diff --git a/t/t1320-earthquakes_-f'([.0-9]+)(?=,m)'.out b/t/t1320-earthquakes_-f'([.0-9]+)(?=,m)'.out index 7893e18..466644b 100644 --- a/t/t1320-earthquakes_-f'([.0-9]+)(?=,m)'.out +++ b/t/t1320-earthquakes_-f'([.0-9]+)(?=,m)'.out @@ -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 diff --git "a/t/t1330-pokemon_-f'(?<=\\()'.out" "b/t/t1330-pokemon_-f'(?<=\\()'.out" index 33d34fb..29917c0 100644 --- "a/t/t1330-pokemon_-f'(?<=\\()'.out" +++ "b/t/t1330-pokemon_-f'(?<=\\()'.out" @@ -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) diff --git a/t/t1401-magnitude_-H.out b/t/t1401-magnitude_-H.out index badb446..965abe1 100644 --- a/t/t1401-magnitude_-H.out +++ b/t/t1401-magnitude_-H.out @@ -1,3 +1,4 @@ +barcat -H t1401-magnitude.in 10p 200p 3.0n diff --git a/t/t1402-rounded_-H_-w1.out b/t/t1402-rounded_-H_-w1.out index a09503f..ac71372 100644 --- a/t/t1402-rounded_-H_-w1.out +++ b/t/t1402-rounded_-H_-w1.out @@ -1,3 +1,4 @@ +barcat -H -w1 t1402-rounded.in 999k - 1.0M + 1.0M ++ diff --git a/t/t1403-precision_-H.out b/t/t1403-precision_-H.out index 97fd1ef..5f6bf9c 100644 --- a/t/t1403-precision_-H.out +++ b/t/t1403-precision_-H.out @@ -1,3 +1,4 @@ +barcat -H t1403-precision.in 1 1.0 2.0k diff --git a/t/t1404-minitude_-H.out b/t/t1404-minitude_-H.out index 78221cc..4456d9e 100644 --- a/t/t1404-minitude_-H.out +++ b/t/t1404-minitude_-H.out @@ -1,3 +1,4 @@ +barcat -H t1404-minitude.in -10p ------------------------------=+| -200p ------------------------------=+| -3.0n ------------------------------=+| diff --git a/t/t1405-megametric_-Hes.out b/t/t1405-megametric_-Hes.out index 937b051..9ec5f8e 100644 --- a/t/t1405-megametric_-Hes.out +++ b/t/t1405-megametric_-Hes.out @@ -1,3 +1,4 @@ +barcat -Hes t1405-megametric.in 30e-34 300e-33 3.0e-32 diff --git a/t/t1421-sexy_time_--sexagesimal.out b/t/t1421-sexy_time_--sexagesimal.out index 778c598..d5f2894 100644 --- a/t/t1421-sexy_time_--sexagesimal.out +++ b/t/t1421-sexy_time_--sexagesimal.out @@ -1,3 +1,4 @@ +barcat --sexagesimal t1421-sexy_time.in 0:00:00 0:00:01 0:00:01 diff --git a/t/t1422-all_the_time_--sexagesimal_-H_-sC.out b/t/t1422-all_the_time_--sexagesimal_-H_-sC.out index cba86f6..e43f516 100644 --- a/t/t1422-all_the_time_--sexagesimal_-H_-sC.out +++ b/t/t1422-all_the_time_--sexagesimal_-H_-sC.out @@ -1,3 +1,4 @@ +barcat --sexagesimal -H -sC t1422-all_the_time.in 0:00:00 - 24:00:00 ---=--- 111:11:11 long ---=-------------------------- diff --git a/t/t1501-end_limit_-L3.out b/t/t1501-end_limit_-L3.out index a0c3e31..82d3792 100644 --- a/t/t1501-end_limit_-L3.out +++ b/t/t1501-end_limit_-L3.out @@ -1,3 +1,4 @@ +barcat -L3 t1501-end_limit.in 998 ------------ 1987 ------------------------ 2955 ----------------------------------- diff --git a/t/t1502-start_limit_-L9-.out b/t/t1502-start_limit_-L9-.out index 9bc34dc..1bd4cc9 100644 --- a/t/t1502-start_limit_-L9-.out +++ b/t/t1502-start_limit_-L9-.out @@ -1,3 +1,4 @@ +barcat -L9- t1502-start_limit.in 7833 -----------------<----=-+-- 8415 -----------------<----=-+---- 8912 -----------------<----=-+-----> diff --git a/t/t1503-partial_-L1-2.out b/t/t1503-partial_-L1-2.out index 7d86133..e9c2519 100644 --- a/t/t1503-partial_-L1-2.out +++ b/t/t1503-partial_-L1-2.out @@ -1,2 +1,3 @@ +barcat -L1-2 t1503-partial.in 1 ------------- 2 prepend -------------------------- diff --git a/t/t1504-bottom_limit_-L-3.out b/t/t1504-bottom_limit_-L-3.out index 6bf764d..e7d3bba 100644 --- a/t/t1504-bottom_limit_-L-3.out +++ b/t/t1504-bottom_limit_-L-3.out @@ -1,3 +1,4 @@ +barcat -L-3 t1504-bottom_limit.in 3350 ------------ 2392 -------- 1411 ----- diff --git a/t/t1505-bottom_range_-L-4-3.out b/t/t1505-bottom_range_-L-4-3.out index 5ba6aa3..d32abfd 100644 --- a/t/t1505-bottom_range_-L-4-3.out +++ b/t/t1505-bottom_range_-L-4-3.out @@ -1,2 +1,3 @@ +barcat -L-4-3 t1505-bottom_range.in 4274 ----------------------------------- 3350 --------------------------- diff --git a/t/t1506-limit_offset_-L-4+2_#TODO.out b/t/t1506-limit_offset_-L-4+2_#TODO.out deleted file mode 120000 index 0f0f456..0000000 --- a/t/t1506-limit_offset_-L-4+2_#TODO.out +++ /dev/null @@ -1 +0,0 @@ -t1505-bottom_range_-L-4-3_#TODO.out \ No newline at end of file diff --git a/t/t1506-limit_offset_-L-4+2_#TODO.out b/t/t1506-limit_offset_-L-4+2_#TODO.out new file mode 100644 index 0000000..cb57694 --- /dev/null +++ b/t/t1506-limit_offset_-L-4+2_#TODO.out @@ -0,0 +1,3 @@ +barcat -L-4+2 t1506-limit_offset.in +4274 ----------------------------------- +3350 --------------------------- diff --git a/t/t1514-limit_beyond_end_-L-5.out b/t/t1514-limit_beyond_end_-L-5.out index e69de29..625a5da 100644 --- a/t/t1514-limit_beyond_end_-L-5.out +++ b/t/t1514-limit_beyond_end_-L-5.out @@ -0,0 +1 @@ +barcat -L-5 t1514-limit_beyond_end.in diff --git a/t/t1601-integer_statistics_-sL0.out b/t/t1601-integer_statistics_-sL0.out index dffcc7d..23a14cb 100644 --- a/t/t1601-integer_statistics_-sL0.out +++ b/t/t1601-integer_statistics_-sL0.out @@ -1 +1,2 @@ +barcat -sL0 t1601-integer_statistics.in 6 total in 3 values (1 min, 2.00 avg, 3 max) diff --git a/t/t1602-float_statistics_-sL0.out b/t/t1602-float_statistics_-sL0.out index 29557a1..fa625b4 100644 --- a/t/t1602-float_statistics_-sL0.out +++ b/t/t1602-float_statistics_-sL0.out @@ -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) diff --git a/t/t1603-added_statistics_-sL2-.out b/t/t1603-added_statistics_-sL2-.out index 5d913fb..be68f1d 100644 --- a/t/t1603-added_statistics_-sL2-.out +++ b/t/t1603-added_statistics_-sL2-.out @@ -1,3 +1,4 @@ +barcat -sL2- t1603-added_statistics.in 920 B -<- 476 C -< 619 Ĉ -< diff --git a/t/t1700-empty_input.out b/t/t1700-empty_input.out index e69de29..d79e5ca 100644 --- a/t/t1700-empty_input.out +++ b/t/t1700-empty_input.out @@ -0,0 +1 @@ +barcat t1700-empty_input.in diff --git a/t/t1701-number_option_-1_?64.out b/t/t1701-number_option_-1_?64.out index 71d67cc..13e5252 100644 --- a/t/t1701-number_option_-1_?64.out +++ b/t/t1701-number_option_-1_?64.out @@ -1 +1,2 @@ +barcat -1 ?64 Unknown option: 1 diff --git a/t/t1710-zero_value_--_0.out b/t/t1710-zero_value_--_0.out index ff95acd..23c18df 100644 --- a/t/t1710-zero_value_--_0.out +++ b/t/t1710-zero_value_--_0.out @@ -1 +1,2 @@ +barcat -- 0 0 diff --git a/t/t1711-value_parameter_--_1.out b/t/t1711-value_parameter_--_1.out index 3ad53e9..fa2b264 100644 --- a/t/t1711-value_parameter_--_1.out +++ b/t/t1711-value_parameter_--_1.out @@ -1 +1,2 @@ +barcat -- 1 1 -------------------------------------+ diff --git a/t/t1712-value_parameters_--_1_4_8_2_6_3_9_5_2.out b/t/t1712-value_parameters_--_1_4_8_2_6_3_9_5_2.out index e844d75..fdfde78 100644 --- a/t/t1712-value_parameters_--_1_4_8_2_6_3_9_5_2.out +++ b/t/t1712-value_parameters_--_1_4_8_2_6_3_9_5_2.out @@ -1,3 +1,4 @@ +barcat -- 1 4 8 2 6 3 9 5 2 1 ---- 4 -----------<---+- 8 -----------<---+-=---->----------- diff --git a/t/t1713-negative_value_--_-1_1.out b/t/t1713-negative_value_--_-1_1.out index 162bba2..fbca7eb 100644 --- a/t/t1713-negative_value_--_-1_1.out +++ b/t/t1713-negative_value_--_-1_1.out @@ -1,2 +1,3 @@ +barcat -- -1 1 -1 1 -----------------|------------------> diff --git a/t/t1721-option_overrides_-C_-M_1.out b/t/t1721-option_overrides_-C_-M_1.out index 3ad53e9..7882fa1 100644 --- a/t/t1721-option_overrides_-C_-M_1.out +++ b/t/t1721-option_overrides_-C_-M_1.out @@ -1 +1,2 @@ +barcat -C -M 1 1 -------------------------------------+ diff --git a/t/t1722-mixed_options_-M_1_-l_2_hi_3_--st_4_--_5_-1_--version.out b/t/t1722-mixed_options_-M_1_-l_2_hi_3_--st_4_--_5_-1_--version.out index f691205..016b74a 100644 --- a/t/t1722-mixed_options_-M_1_-l_2_hi_3_--st_4_--_5_-1_--version.out +++ b/t/t1722-mixed_options_-M_1_-l_2_hi_3_--st_4_--_5_-1_--version.out @@ -1,3 +1,4 @@ +barcat -M 1 -l 2 hi 3 --st 4 -- 5 -1 --version 1 -----|------ … 3 -----|-----------<-=---+- diff --git a/t/t1731-unknown_palette_--palette=none_?64.out b/t/t1731-unknown_palette_--palette=none_?64.out index 87046e4..e3abc75 100644 --- a/t/t1731-unknown_palette_--palette=none_?64.out +++ b/t/t1731-unknown_palette_--palette=none_?64.out @@ -1 +1,2 @@ +barcat --palette=none ?64 Empty palette resulting from "none" diff --git "a/t/t1801-progress_-t-1_-ftime=\\K_?.out" "b/t/t1801-progress_-t-1_-ftime=\\K_?.out" index e0c177d..7e476d2 100644 --- "a/t/t1801-progress_-t-1_-ftime=\\K_?.out" +++ "b/t/t1801-progress_-t-1_-ftime=\\K_?.out" @@ -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 --------+ diff --git a/t/t1901-technicolor_-Cs_--header.out b/t/t1901-technicolor_-Cs_--header.out index 9fe32ca..1c34cc1 100644 --- a/t/t1901-technicolor_-Cs_--header.out +++ b/t/t1901-technicolor_-Cs_--header.out @@ -1,3 +1,4 @@ +barcat -Cs --header t1901-technicolor.in  -3-+ 2-+  -3  -2.449 -- diff --git a/t/t1912-currency_part_-f,_--value-length=7_--minval=1.1_--maxval=1.11_-L10-30_-Cs.out b/t/t1912-currency_part_-f,_--value-length=7_--minval=1.1_--maxval=1.11_-L10-30_-Cs.out index 08c4555..49acee8 100644 --- a/t/t1912-currency_part_-f,_--value-length=7_--minval=1.1_--maxval=1.11_-L10-30_-Cs.out +++ b/t/t1912-currency_part_-f,_--value-length=7_--minval=1.1_--maxval=1.11_-L10-30_-Cs.out @@ -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 1.1026 ------ 2019-09-16 1.1031 ------- 2019-09-13 1.1096 --------------------- diff --git a/t/t1920-colorwave_uncolored_-C_--palette=.out b/t/t1920-colorwave_uncolored_-C_--palette=.out index 354aa86..52de5be 100644 --- a/t/t1920-colorwave_uncolored_-C_--palette=.out +++ b/t/t1920-colorwave_uncolored_-C_--palette=.out @@ -1,3 +1,4 @@ +barcat -C --palette= t1920-colorwave_uncolored.in 1 ---<---+|---->---- 0.987688340623216 ---<---+|---->---- 0.951056516406084 ---<---+|---->---- diff --git a/t/t1921-colorwave_unicolor_-C_--palette=1.out b/t/t1921-colorwave_unicolor_-C_--palette=1.out index db038b3..54ffb82 100644 --- a/t/t1921-colorwave_unicolor_-C_--palette=1.out +++ b/t/t1921-colorwave_unicolor_-C_--palette=1.out @@ -1,3 +1,4 @@ +barcat -C --palette=1 t1921-colorwave_unicolor.in  1 ---<---+|---->----  0.987688340623216 ---<---+|---->----  0.951056516406084 ---<---+|---->---- diff --git a/t/t1922-colorwave_duocolor_-C_--palette=40,0.out b/t/t1922-colorwave_duocolor_-C_--palette=40,0.out index 3b43340..66c8a8a 100644 --- a/t/t1922-colorwave_duocolor_-C_--palette=40,0.out +++ b/t/t1922-colorwave_duocolor_-C_--palette=40,0.out @@ -1,3 +1,4 @@ +barcat -C --palette=40,0 t1922-colorwave_duocolor.in  1 ---<---+|---->----  0.987688340623216 ---<---+|---->----  0.951056516406084 ---<---+|---->---- diff --git a/t/t1923-colorwave_tricolor_-C_--palette=41,0,42.out b/t/t1923-colorwave_tricolor_-C_--palette=41,0,42.out index 35d26fa..c85b16f 100644 --- a/t/t1923-colorwave_tricolor_-C_--palette=41,0,42.out +++ b/t/t1923-colorwave_tricolor_-C_--palette=41,0,42.out @@ -1,3 +1,4 @@ +barcat -C --palette=41,0,42 t1923-colorwave_tricolor.in  1 ---<---+|---->----  0.987688340623216 ---<---+|---->----  0.951056516406084 ---<---+|---->---- diff --git a/t/t1924-colorwave_custom_palette_-C_--palette=31,41,43,42,32.out b/t/t1924-colorwave_custom_palette_-C_--palette=31,41,43,42,32.out index c2a4696..4bc656e 100644 --- a/t/t1924-colorwave_custom_palette_-C_--palette=31,41,43,42,32.out +++ b/t/t1924-colorwave_custom_palette_-C_--palette=31,41,43,42,32.out @@ -1,3 +1,4 @@ +barcat -C --palette=31,41,43,42,32 t1924-colorwave_custom_palette.in  1 ---<---+|---->----  0.987688340623216 ---<---+|---->----  0.951056516406084 ---<---+|---->---- diff --git a/t/t1931-colorwave_fire_-C_--palette=fire.out b/t/t1931-colorwave_fire_-C_--palette=fire.out index bccb249..7a3f8ae 100644 --- a/t/t1931-colorwave_fire_-C_--palette=fire.out +++ b/t/t1931-colorwave_fire_-C_--palette=fire.out @@ -1,3 +1,4 @@ +barcat -C --palette=fire t1931-colorwave_fire.in  1 ---<---+|---->----  0.987688340623216 ---<---+|---->----  0.951056516406084 ---<---+|---->---- diff --git a/t/t1932-colorwave_fireworks_-C_--palette=fire256.out b/t/t1932-colorwave_fireworks_-C_--palette=fire256.out index d33a74e..f5c3693 100644 --- a/t/t1932-colorwave_fireworks_-C_--palette=fire256.out +++ b/t/t1932-colorwave_fireworks_-C_--palette=fire256.out @@ -1,3 +1,4 @@ +barcat -C --palette=fire256 t1932-colorwave_fireworks.in  1 ---<---+|---->----  0.987688340623216 ---<---+|---->----  0.951056516406084 ---<---+|---->---- diff --git a/t/t1933-lolcat_-C_--spark_--palette=rainbow.out b/t/t1933-lolcat_-C_--spark_--palette=rainbow.out index 140e11c..0552106 100644 --- a/t/t1933-lolcat_-C_--spark_--palette=rainbow.out +++ b/t/t1933-lolcat_-C_--spark_--palette=rainbow.out @@ -1 +1,2 @@ +barcat -C --spark --palette=rainbow t1933-lolcat.in █████▇▇▆▆▅▅▄▃▃▂▂▁▁▁▁▁▁▁▁▁▂▂▃▃▄▄▅▆▆▇▇█████████▇▇▆▆▅▅▄▃▃▂▂▁▁▁▁▁▁▁▁▁▂▂▃▃▄▄▅▆▆▇▇████ diff --git a/t/t2100-sparkwave_--spark.out b/t/t2100-sparkwave_--spark.out index 70f8cf1..0ac871f 100644 --- a/t/t2100-sparkwave_--spark.out +++ b/t/t2100-sparkwave_--spark.out @@ -1 +1,2 @@ +barcat --spark t2100-sparkwave.in █████████▇▇▇▆▆▅▅▄▄▃▃▂▂▂▁▁▁▁▁▁▁▁▁▁▁▂▂▂▃▃▄▄▅▅▆▆▇▇▇████████████▇▇▆▆▅▅▄▄▃▃▃▂▂▁▁▁▁▁▁▁▁▁▁▁▁▂▂▃▃▄▄▅▅▆▆▆▇▇██ diff --git a/t/t2103-spark-lines_--spark_-w9.out b/t/t2103-spark-lines_--spark_-w9.out index 01ea973..41ad8f3 100644 --- a/t/t2103-spark-lines_--spark_-w9.out +++ b/t/t2103-spark-lines_--spark_-w9.out @@ -1,3 +1,4 @@ +barcat --spark -w9 t2103-spark-lines.in █████████ ▇▇▇▆▆▅▅▄▄ ▃▃▂▂▂▁▁▁▁ diff --git a/t/t2105-spark_ascii_-a_--spark.out b/t/t2105-spark_ascii_-a_--spark.out index 771c1a8..a46d0eb 100644 --- a/t/t2105-spark_ascii_-a_--spark.out +++ b/t/t2105-spark_ascii_-a_--spark.out @@ -1 +1,2 @@ +barcat -a --spark t2105-spark_ascii.in OOOOOOOOOOOOOoooooo...................ooooooOOOOOOOOOOOOOOOOOOOOooooo....................oooooOOOOOO diff --git a/t/t2109-spark_distribution_--spark_--indicators=-123456789.out b/t/t2109-spark_distribution_--spark_--indicators=-123456789.out index 28d1445..723e8b7 100644 --- a/t/t2109-spark_distribution_--spark_--indicators=-123456789.out +++ b/t/t2109-spark_distribution_--spark_--indicators=-123456789.out @@ -1 +1,2 @@ +barcat --spark --indicators=-123456789 t2109-spark_distribution.in 123456789 diff --git a/t/t2110-spark_binary_--spark_--indicators=XO.out b/t/t2110-spark_binary_--spark_--indicators=XO.out index 753f76c..e2342a3 100644 --- a/t/t2110-spark_binary_--spark_--indicators=XO.out +++ b/t/t2110-spark_binary_--spark_--indicators=XO.out @@ -1 +1,2 @@ +barcat --spark --indicators=XO t2110-spark_binary.in XOOOOXOOXOOOOXX diff --git "a/t/t2111-spark_unicode_--spark_--indicators=-\302\267\342\200\242O.out" "b/t/t2111-spark_unicode_--spark_--indicators=-\302\267\342\200\242O.out" index 6662c52..477e736 100644 --- "a/t/t2111-spark_unicode_--spark_--indicators=-\302\267\342\200\242O.out" +++ "b/t/t2111-spark_unicode_--spark_--indicators=-\302\267\342\200\242O.out" @@ -1 +1,2 @@ +barcat --spark --indicators=-·•O t2111-spark_unicode.in -··•·-·•-O•··-- diff --git a/t/t2115-spark-oneliner_--spark_--indicators=1.out b/t/t2115-spark-oneliner_--spark_--indicators=1.out index 86eb132..85e0449 100644 --- a/t/t2115-spark-oneliner_--spark_--indicators=1.out +++ b/t/t2115-spark-oneliner_--spark_--indicators=1.out @@ -1 +1,2 @@ +barcat --spark --indicators=1 t2115-spark-oneliner.in 111111111111111 diff --git a/t/t2120-prefixed_--indicators=.out b/t/t2120-prefixed_--indicators=.out index 861c5d8..d432bbd 100644 --- a/t/t2120-prefixed_--indicators=.out +++ b/t/t2120-prefixed_--indicators=.out @@ -1,3 +1,4 @@ +barcat --indicators= t2120-prefixed.in nan ▍ -1 negative ------- ▏ -2 negativer diff --git a/t/t2122-outcommented_--indicators=#.out b/t/t2122-outcommented_--indicators=#.out index 8126eff..060f71f 100644 --- a/t/t2122-outcommented_--indicators=#.out +++ b/t/t2122-outcommented_--indicators=#.out @@ -1,3 +1,4 @@ +barcat --indicators=# t2122-outcommented.in #nan # -1 negative ------- # -2 negativer diff --git a/t/t2130-overspark_--spark_--maxval=1.out b/t/t2130-overspark_--spark_--maxval=1.out index 0f13d54..75b3f61 100644 --- a/t/t2130-overspark_--spark_--maxval=1.out +++ b/t/t2130-overspark_--spark_--maxval=1.out @@ -1 +1,2 @@ +barcat --spark --maxval=1 t2130-overspark.in ▁██▆ ▆█ ████ diff --git a/t/t2180-spark_combined_--spark_--indicators=012345_-Cs_--maxval=1_-L17.out b/t/t2180-spark_combined_--spark_--indicators=012345_-Cs_--maxval=1_-L17.out index be3a08b..3dcf533 100644 --- a/t/t2180-spark_combined_--spark_--indicators=012345_-Cs_--maxval=1_-L17.out +++ b/t/t2180-spark_combined_--spark_--indicators=012345_-Cs_--maxval=1_-L17.out @@ -1,2 +1,3 @@ +barcat --spark --indicators=012345 -Cs --maxval=1 -L17 t2180-spark_combined.in 11234444443455052 -7.459 of -7.459 total in 16 values over 18 lines (-3 min, -0.47 avg, 2 max) diff --git a/t/t2201-ascii_-aHl7.out b/t/t2201-ascii_-aHl7.out index 6110693..2757ad8 100644 --- a/t/t2201-ascii_-aHl7.out +++ b/t/t2201-ascii_-aHl7.out @@ -1,3 +1,4 @@ +barcat -aHl7 t2201-ascii.in 123u micro -------------<--=+---------| 100m long> -------------<--=+---------|- -1 -------------<--=+- diff --git a/t/t2220-starry_line_--graph-format=*.out b/t/t2220-starry_line_--graph-format=*.out index 7ab312d..a662a20 100644 --- a/t/t2220-starry_line_--graph-format=*.out +++ b/t/t2220-starry_line_--graph-format=*.out @@ -1,3 +1,4 @@ +barcat --graph-format=* t2220-starry_line.in 123e-6 micro **********<*=+*******| .1 long line **********<*=+*******|* -1 **********<*=+* diff --git "a/t/t2221-unicode_line_--graph-format=\342\224\200.out" "b/t/t2221-unicode_line_--graph-format=\342\224\200.out" index e14e559..b1fc8a7 100644 --- "a/t/t2221-unicode_line_--graph-format=\342\224\200.out" +++ "b/t/t2221-unicode_line_--graph-format=\342\224\200.out" @@ -1,3 +1,4 @@ +barcat --graph-format=─ t2221-unicode_line.in 123e-6 micro ──────────<─=+───────| .1 long line ──────────<─=+───────|─ -1 ──────────<─=+─ diff --git a/t/t2250-unremarkable_--markers=.out b/t/t2250-unremarkable_--markers=.out index 38ec6b6..4986402 100644 --- a/t/t2250-unremarkable_--markers=.out +++ b/t/t2250-unremarkable_--markers=.out @@ -1,3 +1,4 @@ +barcat --markers= t2250-unremarkable.in 123e-6 micro ---------------------- .1 long line ----------------------- -1 --------------- diff --git a/t/t2255-value_marker_--markers=:-2.out b/t/t2255-value_marker_--markers=:-2.out index bd2b625..90ed5b1 100644 --- a/t/t2255-value_marker_--markers=:-2.out +++ b/t/t2255-value_marker_--markers=:-2.out @@ -1,3 +1,4 @@ +barcat --markers=:-2 t2255-value_marker.in 123e-6 micro ------:--------------- .1 long line ------:---------------- -1 ------:-------- diff --git a/t/t2256-remarkable_--mark='?0_!0'.out b/t/t2256-remarkable_--mark='?0_!0'.out index 2cb00c0..3ad8e95 100644 --- a/t/t2256-remarkable_--mark='?0_!0'.out +++ b/t/t2256-remarkable_--mark='?0_!0'.out @@ -1,3 +1,4 @@ +barcat --mark='?0 !0' t2256-remarkable.in 123e-6 micro ---------------------! .1 long line ---------------------!- -1 --------------- diff --git a/t/t2258-repeat_markers_--mark=:/1.out b/t/t2258-repeat_markers_--mark=:/1.out index c23950d..d4910bb 100644 --- a/t/t2258-repeat_markers_--mark=:/1.out +++ b/t/t2258-repeat_markers_--mark=:/1.out @@ -1,3 +1,4 @@ +barcat --mark=:/1 t2258-repeat_markers.in 1 ---: 2 ---:---: 3 ---:---:---:- diff --git a/t/t2259-log_axis_-e_--markers=+/1.out b/t/t2259-log_axis_-e_--markers=+/1.out index 4cd6f7c..2436e69 100644 --- a/t/t2259-log_axis_-e_--markers=+/1.out +++ b/t/t2259-log_axis_-e_--markers=+/1.out @@ -1,3 +1,4 @@ +barcat -e --markers=+/1 t2259-log_axis.in 1 10 ----+- 100 ----+-----+ diff --git a/t/t2264-minmax_percent_--markers=')0v_(100v'_#TODO.out b/t/t2264-minmax_percent_--markers=')0v_(100v'_#TODO.out index 56bfc3f..c4f7e42 100644 --- a/t/t2264-minmax_percent_--markers=')0v_(100v'_#TODO.out +++ b/t/t2264-minmax_percent_--markers=')0v_(100v'_#TODO.out @@ -1,3 +1,4 @@ +barcat --markers=')0v (100v' t2264-minmax_percent.in 123e-6 micro (--------------------- .1 long line (---------------------) -1 (-------------- diff --git "a/t/t2265-percentile_markers_--graph-format=\342\224\200_--markers='550v_00v_11v_999v_^100v'.out" "b/t/t2265-percentile_markers_--graph-format=\342\224\200_--markers='550v_00v_11v_999v_^100v'.out" index 2482fb0..fec93e0 100644 --- "a/t/t2265-percentile_markers_--graph-format=\342\224\200_--markers='550v_00v_11v_999v_^100v'.out" +++ "b/t/t2265-percentile_markers_--graph-format=\342\224\200_--markers='550v_00v_11v_999v_^100v'.out" @@ -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─ diff --git "a/t/t2295-unicode_in_my_bar_--graph-format=\342\224\200_--markers='\342\224\274avg_\342\225\25350v_\342\224\254-2'.out" "b/t/t2295-unicode_in_my_bar_--graph-format=\342\224\200_--markers='\342\224\274avg_\342\225\25350v_\342\224\254-2'.out" index bcbfbf9..30b59bf 100644 --- "a/t/t2295-unicode_in_my_bar_--graph-format=\342\224\200_--markers='\342\224\274avg_\342\225\25350v_\342\224\254-2'.out" +++ "b/t/t2295-unicode_in_my_bar_--graph-format=\342\224\200_--markers='\342\224\274avg_\342\225\25350v_\342\224\254-2'.out" @@ -1,3 +1,4 @@ +barcat --graph-format=─ --markers='┼avg ╫50v ┬-2' t2295-unicode_in_my_bar.in 123e-6 micro ──────┬─────┼╫──────── .1 long line ──────┬─────┼╫───────── -1 ──────┬─────┼╫─ -- 2.30.0