From f8ff6134094dfbef301efd2e234c696775d0ed56 Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Wed, 7 Dec 2022 22:55:54 +0100 Subject: [PATCH] weighted percentile interpolation Proper interpolation of values not on exact halves. --- barcat | 19 ++++-- t/t1001-seq.out | 4 +- t/t1002-sinewave.out | 42 ++++++------- t/t1006-unvalued.out | 8 +-- t/t1008-unicode.out | 20 +++---- t/t1100-aligned.out | 6 +- t/t1101-wow_much_length.out | 6 +- t/t1102-strip_contents.out | 10 ++-- t/t1103-only_separators.out | 10 ++-- t/t1104-abbreviate_contents.out | 10 ++-- t/t1105-length_percentage.out | 6 +- t/t1106-forced_length.out | 6 +- t/t1200-unaligned.out | 6 +- t/t1202-abbreviate_total.out | 4 +- t/t1260-powers_of_ten.out | 4 +- t/t1261-binary_powers.out | 98 +++++++++++++++---------------- t/t1300-field_number.out | 2 +- t/t1421-sexy_time.out | 8 +-- t/t1502-start_limit.out | 36 ++++++------ t/t1506-limit_both_ways.out | 6 +- t/t1522-count_tail.out | 2 +- t/t1524-count_negative_limits.out | 2 +- t/t1603-added_statistics.out | 18 +++--- t/t1662-uniq_words.out | 6 +- t/t1664-uniq_first_column.out | 2 +- t/t1666-uniq_last_column.out | 4 +- t/t1668-uniq_regex.out | 2 +- t/t1669-uniq_capture.out | 2 +- t/t1672-missing_uniq.out | 2 +- t/t1673-uniq_abbreviated.out | 4 +- t/t1704-input_separator.out | 4 +- t/t1705-input_twice.out | 8 +-- t/t1707-stdin.out | 4 +- t/t1712-value_parameters.out | 12 ++-- t/t1713-negative_value.out | 2 +- t/t1722-mixed_options.out | 6 +- t/t1806-reset_uniq.out | 8 +-- t/t2120-prefixed.out | 8 +-- t/t2122-outcommented.out | 8 +-- t/t2201-ascii.out | 6 +- t/t2220-starry_line.out | 6 +- t/t2221-unicode_line.out | 6 +- t/t2265-percentile_markers.out | 8 +-- 43 files changed, 225 insertions(+), 216 deletions(-) diff --git a/barcat b/barcat index 08b3db2..655f386 100755 --- a/barcat +++ b/barcat @@ -423,7 +423,13 @@ sub calc { "percentile $1 out of bounds\n" ); my $index = $#order * $1 / 100; - return ($order[$index] + $order[$index + .5]) / 2; + my $f = $index - int $index; + my $val = $order[$index]; + if ($f) { + my $next = $order[$index + 1]; + $val -= $f * ($val - $next); + } + return $val; } elsif ($func =~ /\A-?[0-9.]+\z/) { return $func; @@ -638,10 +644,13 @@ For example C<:/1> for a grid at every integer. =item IB -Ranked value at the given percentile. -The default shows C<+> at C<50v> for the mean or median; -the middle value or average between middle values. -One standard deviation right of the mean is at about C<68.3v>. +Ranked value at the given percentile, +or score at or below which a percentage falls +in its frequency distribution (inclusive). + +The default shows C<+> at C<50v> for the mean or median: +the middle value or interpolation between two values. +One standard deviation below the median is at about C<68v>. The default includes C<< >31.73v <68.27v >> to encompass all I results, or 68% of all entries, by I<< <--> >>. diff --git a/t/t1001-seq.out b/t/t1001-seq.out index 5bfeb7b..5949515 100644 --- a/t/t1001-seq.out +++ b/t/t1001-seq.out @@ -1,4 +1,4 @@ barcat input/seq3.txt 1 ------------- -2 ------------------------+ -3 ------------------------+------>------ +2 --------------------<---+ +3 --------------------<---+---->-------- diff --git a/t/t1002-sinewave.out b/t/t1002-sinewave.out index a38a120..e4d19c6 100644 --- a/t/t1002-sinewave.out +++ b/t/t1002-sinewave.out @@ -4,27 +4,27 @@ barcat input/intsine.txt 2955 ---------- 3894 -------------- 4794 ----------------- -5646 ------------------<- -6442 ------------------<---= -7174 ------------------<---=-- -7833 ------------------<---=--+- -8415 ------------------<---=--+--- -8912 ------------------<---=--+----> -9320 ------------------<---=--+---->-- -9636 ------------------<---=--+---->--- -9855 ------------------<---=--+---->---- -9975 ------------------<---=--+---->---- -9996 ------------------<---=--+---->---- -9917 ------------------<---=--+---->---- -9738 ------------------<---=--+---->--- -9463 ------------------<---=--+---->-- -9093 ------------------<---=--+---->- -8632 ------------------<---=--+---- -8085 ------------------<---=--+-- -7457 ------------------<---=--+ -6755 ------------------<---=- -5985 ------------------<-- -5155 ------------------ +5646 -----------------<-- +6442 -----------------<----= +7174 -----------------<----=-- +7833 -----------------<----=--+- +8415 -----------------<----=--+--- +8912 -----------------<----=--+----> +9320 -----------------<----=--+---->-- +9636 -----------------<----=--+---->--- +9855 -----------------<----=--+---->---- +9975 -----------------<----=--+---->---- +9996 -----------------<----=--+---->---- +9917 -----------------<----=--+---->---- +9738 -----------------<----=--+---->--- +9463 -----------------<----=--+---->-- +9093 -----------------<----=--+---->- +8632 -----------------<----=--+---- +8085 -----------------<----=--+-- +7457 -----------------<----=--+ +6755 -----------------<----=- +5985 -----------------<--- +5155 -----------------< 4274 --------------- 3350 ------------ 2392 -------- diff --git a/t/t1006-unvalued.out b/t/t1006-unvalued.out index 507ce9b..eb4d9c3 100644 --- a/t/t1006-unvalued.out +++ b/t/t1006-unvalued.out @@ -2,8 +2,8 @@ barcat input/unvalued.txt nan -1 negative ------- -2 negativer - 0 zero ------------=-| - .0 zeroer ------------=-| --00 zeroest ------------=-| + 0 zero -----------<=-| + .0 zeroer -----------<=-| +-00 zeroest -----------<=-| -1.5 positive ------------=-|----------- +1.5 positive -----------<=-|----------- diff --git a/t/t1008-unicode.out b/t/t1008-unicode.out index 6048c53..69d7d36 100644 --- a/t/t1008-unicode.out +++ b/t/t1008-unicode.out @@ -1,32 +1,32 @@ barcat input/unicode.txt -9324 A --<---+--=--->------------------- +9324 A --<---+--=-->-------------------- 920 B --< 476 C -- 619 Ĉ -- 2094 D --<---+ -6552 E --<---+--=--->--------- +6552 E --<---+--=-->---------- 1062 F --<- 766 G --< 738 Ĝ --< 371 H - 7 Ĥ -5513 I --<---+--=--->------ +5513 I --<---+--=-->------- 1140 J --<- 38 Ĵ 2558 K --<---+-- -4253 L --<---+--=--->- +4253 L --<---+--=-->-- 2183 M --<---+- -6321 N --<---+--=--->-------- -8110 O --<---+--=--->--------------- +6321 N --<---+--=-->--------- +8110 O --<---+--=-->---------------- 2266 P --<---+- -4387 R --<---+--=--->-- -5462 S --<---+--=--->----- +4387 R --<---+--=-->--- +5462 S --<---+--=-->------ 331 Ŝ - -3534 T --<---+--=--- +3534 T --<---+--=--> 2579 U --<---+-- 320 Ŭ - 1458 V --<-- 383 Z - # 23731 whitespace -4217 … --<---+--=--->- +4217 … --<---+--=-->-- 0 diff --git a/t/t1100-aligned.out b/t/t1100-aligned.out index d0f4a79..5facbbb 100644 --- a/t/t1100-aligned.out +++ b/t/t1100-aligned.out @@ -3,6 +3,6 @@ barcat input/aligned.txt 2 prepend -< 3: append -< 4 3 2 1 trailing space -<+ -010 -<+=->-- - 10. more -<+=->-- -5.0less -<+= +010 -<+>---- + 10. more -<+>---- +5.0less -<+> diff --git a/t/t1101-wow_much_length.out b/t/t1101-wow_much_length.out index a6e6a2b..8c2c044 100644 --- a/t/t1101-wow_much_length.out +++ b/t/t1101-wow_much_length.out @@ -3,6 +3,6 @@ barcat -l30 input/aligned.txt 2 prepend -< 3: append -< 4 3 2 1 trailing space -<+ -010 -<+=->-- - 10. more -<+=->-- -5.0less -<+= +010 -<+>---- + 10. more -<+>---- +5.0less -<+> diff --git a/t/t1102-strip_contents.out b/t/t1102-strip_contents.out index 84d6e53..63c8f6c 100644 --- a/t/t1102-strip_contents.out +++ b/t/t1102-strip_contents.out @@ -1,8 +1,8 @@ barcat -l0 input/aligned.txt 1 ---- 2 ------- - 3:----------< - 4 ----------<--+ -010 ----------<--+---=-------->--------- - 10.----------<--+---=-------->--------- -5.0l----------<--+---= + 3:---------<- + 4 ---------<---+ +010 ---------<---+---=->---------------- + 10.---------<---+---=->---------------- +5.0l---------<---+---= diff --git a/t/t1103-only_separators.out b/t/t1103-only_separators.out index e54080c..9038d1c 100644 --- a/t/t1103-only_separators.out +++ b/t/t1103-only_separators.out @@ -1,8 +1,8 @@ barcat -l1 input/aligned.txt 1 ---- 2 ------- - 3: ----------< - 4 ----------<--+ -010 ----------<--+---=------->--------- - 10. ----------<--+---=------->--------- -5.0l ----------<--+---= + 3: ---------<- + 4 ---------<---+ +010 ---------<---+---=>---------------- + 10. ---------<---+---=>---------------- +5.0l ---------<---+---= diff --git a/t/t1104-abbreviate_contents.out b/t/t1104-abbreviate_contents.out index fa15033..944bce2 100644 --- a/t/t1104-abbreviate_contents.out +++ b/t/t1104-abbreviate_contents.out @@ -1,8 +1,8 @@ barcat -l5 input/aligned.txt 1 --- 2 pr… ------ - 3: … ---------< - 4 … ---------<--+ -010 ---------<--+--=------->-------- - 10. m… ---------<--+--=------->-------- -5.0less ---------<--+--= + 3: … --------<- + 4 … --------<---+ +010 --------<---+--=->-------------- + 10. m… --------<---+--=->-------------- +5.0less --------<---+--= diff --git a/t/t1105-length_percentage.out b/t/t1105-length_percentage.out index 27708b3..51070d8 100644 --- a/t/t1105-length_percentage.out +++ b/t/t1105-length_percentage.out @@ -3,6 +3,6 @@ barcat -l50% input/aligned.txt 2 prepend --- 3: append ----< 4 3 2 1 trail… ----<-+ -010 ----<-+-=--->---- - 10. more ----<-+-=--->---- -5.0less ----<-+-= +010 ----<-+->-------- + 10. more ----<-+->-------- +5.0less ----<-+-> diff --git a/t/t1106-forced_length.out b/t/t1106-forced_length.out index 281da76..f03d4b0 100644 --- a/t/t1106-forced_length.out +++ b/t/t1106-forced_length.out @@ -3,6 +3,6 @@ barcat -l-30 input/aligned.txt 2 prepend - 3: append -+ 4 3 2 1 trailing space -+ -010 -+=->- - 10. more -+=->- -5.0less -+= +010 -+>--- + 10. more -+>--- +5.0less -+> diff --git a/t/t1200-unaligned.out b/t/t1200-unaligned.out index 22d71f3..b9b1f38 100644 --- a/t/t1200-unaligned.out +++ b/t/t1200-unaligned.out @@ -3,6 +3,6 @@ barcat -u input/aligned.txt 2 prepend -- 3: append --< 4 3 2 1 trailing space --<+ - 010 --<+=-->-- - 10. more --<+=-->-- - 5.0less --<+= + 010 --<+>----- + 10. more --<+>----- + 5.0less --<+> diff --git a/t/t1202-abbreviate_total.out b/t/t1202-abbreviate_total.out index f814307..b8c33f0 100644 --- a/t/t1202-abbreviate_total.out +++ b/t/t1202-abbreviate_total.out @@ -3,6 +3,6 @@ barcat -ul8 input/aligned.txt 2 pre… ------- 3: … ---------< 4 ---------<--+ - 010 ---------<--+---=------->-------- - 10. … ---------<--+---=------->-------- + 010 ---------<--+---=>--------------- + 10. … ---------<--+---=>--------------- 5.0… ---------<--+---= diff --git a/t/t1260-powers_of_ten.out b/t/t1260-powers_of_ten.out index 9ed46d7..8d2e01d 100644 --- a/t/t1260-powers_of_ten.out +++ b/t/t1260-powers_of_ten.out @@ -4,5 +4,5 @@ barcat -e input/powers_of_ten.txt 100 ----------< 1000 ----------<-----+ 1e4 ----------<-----+----- -100000 ----------<-----+-------->-- - 1e6 ----------<-----+-------->--=---- +100000 ----------<-----+----->----- + 1e6 ----------<-----+----->-----=---- diff --git a/t/t1261-binary_powers.out b/t/t1261-binary_powers.out index 2527fe1..6e6f315 100644 --- a/t/t1261-binary_powers.out +++ b/t/t1261-binary_powers.out @@ -16,52 +16,52 @@ barcat -e input/binary_powers.txt 16384 2^14 --- 32768 2^15 --- 65536 2^16 --- - 131072 2^17 ---- - 262144 2^18 ---- - 524288 2^19 ---- - 1048576 2^20 ---- - 2097152 2^21 ----< - 4194304 2^22 ----< - 8388608 2^23 ----< - 16777216 2^24 ----< - 33554432 2^25 ----< - 67108864 2^26 ----<- - 134217728 2^27 ----<- - 268435456 2^28 ----<- - 536870912 2^29 ----<- - 1073741824 2^30 ----<- - 2147483648 2^31 ----<-+ - 4294967296 2^32 ----<-+ - 8589934592 2^33 ----<-+ - 17179869184 2^34 ----<-+ - 34359738368 2^35 ----<-+- - 68719476736 2^36 ----<-+- - 137438953472 2^37 ----<-+- - 274877906944 2^38 ----<-+- - 549755813888 2^39 ----<-+- - 1099511627776 2^40 ----<-+-- - 2199023255552 2^41 ----<-+-- - 4398046511104 2^42 ----<-+-- - 8796093022208 2^43 ----<-+-- - 17592186044416 2^44 ----<-+-- - 35184372088832 2^45 ----<-+--> - 70368744177664 2^46 ----<-+--> - 140737488355328 2^47 ----<-+--> - 281474976710656 2^48 ----<-+--> - 562949953421312 2^49 ----<-+-->- - 1125899906842624 2^50 ----<-+-->- - 2251799813685248 2^51 ----<-+-->- - 4503599627370496 2^52 ----<-+-->- - 9007199254740992 2^53 ----<-+-->- - 18014398509481984 2^54 ----<-+-->-- - 36028797018963968 2^55 ----<-+-->-- - 72057594037927936 2^56 ----<-+-->-- - 144115188075855872 2^57 ----<-+-->-- - 288230376151711744 2^58 ----<-+-->-- - 576460752303423488 2^59 ----<-+-->--= - 1152921504606846976 2^60 ----<-+-->--= - 2305843009213693952 2^61 ----<-+-->--= - 4611686018427387904 2^62 ----<-+-->--= - 9223372036854775808 2^63 ----<-+-->--=- -18446744073709551616 2^64 ----<-+-->--=- -36893488147419103232 2^65 ----<-+-->--=- + 131072 2^17 ---< + 262144 2^18 ---< + 524288 2^19 ---< + 1048576 2^20 ---< + 2097152 2^21 ---<- + 4194304 2^22 ---<- + 8388608 2^23 ---<- + 16777216 2^24 ---<- + 33554432 2^25 ---<- + 67108864 2^26 ---<-- + 134217728 2^27 ---<-- + 268435456 2^28 ---<-- + 536870912 2^29 ---<-- + 1073741824 2^30 ---<-- + 2147483648 2^31 ---<--+ + 4294967296 2^32 ---<--+ + 8589934592 2^33 ---<--+ + 17179869184 2^34 ---<--+ + 34359738368 2^35 ---<--+- + 68719476736 2^36 ---<--+- + 137438953472 2^37 ---<--+- + 274877906944 2^38 ---<--+- + 549755813888 2^39 ---<--+- + 1099511627776 2^40 ---<--+-- + 2199023255552 2^41 ---<--+-- + 4398046511104 2^42 ---<--+-- + 8796093022208 2^43 ---<--+-- + 17592186044416 2^44 ---<--+-- + 35184372088832 2^45 ---<--+--> + 70368744177664 2^46 ---<--+--> + 140737488355328 2^47 ---<--+--> + 281474976710656 2^48 ---<--+--> + 562949953421312 2^49 ---<--+-->- + 1125899906842624 2^50 ---<--+-->- + 2251799813685248 2^51 ---<--+-->- + 4503599627370496 2^52 ---<--+-->- + 9007199254740992 2^53 ---<--+-->- + 18014398509481984 2^54 ---<--+-->-- + 36028797018963968 2^55 ---<--+-->-- + 72057594037927936 2^56 ---<--+-->-- + 144115188075855872 2^57 ---<--+-->-- + 288230376151711744 2^58 ---<--+-->-- + 576460752303423488 2^59 ---<--+-->--= + 1152921504606846976 2^60 ---<--+-->--= + 2305843009213693952 2^61 ---<--+-->--= + 4611686018427387904 2^62 ---<--+-->--= + 9223372036854775808 2^63 ---<--+-->--=- +18446744073709551616 2^64 ---<--+-->--=- +36893488147419103232 2^65 ---<--+-->--=- diff --git a/t/t1300-field_number.out b/t/t1300-field_number.out index 206e63b..d7e9b3f 100644 --- a/t/t1300-field_number.out +++ b/t/t1300-field_number.out @@ -1,5 +1,5 @@ barcat -f2 input/numcolumns.txt 1 2 3 4 --- -10 20 30 40 -------<-+--=------>-------- +10 20 30 40 -------<-+->=--------------- 3 16 9 123 -------< 4 5 12 7 -------<-+- diff --git a/t/t1421-sexy_time.out b/t/t1421-sexy_time.out index 28b0995..d818543 100644 --- a/t/t1421-sexy_time.out +++ b/t/t1421-sexy_time.out @@ -6,7 +6,7 @@ barcat --sexagesimal input/sexy_time.txt 0:01:00 1:00:00 + 1:01:01 + - 9:59:59 +-----=-----> -10:00:00 +-----=-----> -11:11:11 +-----=----->- -24:00:00 +-----=----->------------------ + 9:59:59 +-----=--->-- +10:00:00 +-----=--->-- +11:11:11 +-----=--->--- +24:00:00 +-----=--->-------------------- diff --git a/t/t1502-start_limit.out b/t/t1502-start_limit.out index 2c83e11..80dc744 100644 --- a/t/t1502-start_limit.out +++ b/t/t1502-start_limit.out @@ -1,22 +1,22 @@ barcat -L9- input/intsine.txt -7833 ------------------<---=--+- -8415 ------------------<---=--+--- -8912 ------------------<---=--+----> -9320 ------------------<---=--+---->-- -9636 ------------------<---=--+---->--- -9855 ------------------<---=--+---->---- -9975 ------------------<---=--+---->---- -9996 ------------------<---=--+---->---- -9917 ------------------<---=--+---->---- -9738 ------------------<---=--+---->--- -9463 ------------------<---=--+---->-- -9093 ------------------<---=--+---->- -8632 ------------------<---=--+---- -8085 ------------------<---=--+-- -7457 ------------------<---=--+ -6755 ------------------<---=- -5985 ------------------<-- -5155 ------------------ +7833 -----------------<----=--+- +8415 -----------------<----=--+--- +8912 -----------------<----=--+----> +9320 -----------------<----=--+---->-- +9636 -----------------<----=--+---->--- +9855 -----------------<----=--+---->---- +9975 -----------------<----=--+---->---- +9996 -----------------<----=--+---->---- +9917 -----------------<----=--+---->---- +9738 -----------------<----=--+---->--- +9463 -----------------<----=--+---->-- +9093 -----------------<----=--+---->- +8632 -----------------<----=--+---- +8085 -----------------<----=--+-- +7457 -----------------<----=--+ +6755 -----------------<----=- +5985 -----------------<--- +5155 -----------------< 4274 --------------- 3350 ------------ 2392 -------- diff --git a/t/t1506-limit_both_ways.out b/t/t1506-limit_both_ways.out index 2448ad9..bf5c645 100644 --- a/t/t1506-limit_both_ways.out +++ b/t/t1506-limit_both_ways.out @@ -1,4 +1,4 @@ barcat -L14+3 input/intsine.txt -9855 ------------------<---=--+---->---- -9975 ------------------<---=--+---->---- -9996 ------------------<---=--+---->---- +9855 -----------------<----=--+---->---- +9975 -----------------<----=--+---->---- +9996 -----------------<----=--+---->---- diff --git a/t/t1522-count_tail.out b/t/t1522-count_tail.out index 36d6bb9..544728c 100644 --- a/t/t1522-count_tail.out +++ b/t/t1522-count_tail.out @@ -1,3 +1,3 @@ barcat -L-1 -s input/aligned.txt -5.0less ---------<--+--= +5.0less --------<---+--= 5 of 35 total in 7 values (1 min, 5.00 avg, 010 max) diff --git a/t/t1524-count_negative_limits.out b/t/t1524-count_negative_limits.out index a552adb..f3bc8ce 100644 --- a/t/t1524-count_negative_limits.out +++ b/t/t1524-count_negative_limits.out @@ -1,3 +1,3 @@ barcat -L-2+1 -s input/aligned.txt - 10. more --------<--+--=------->------- + 10. more --------<--+--=>-------------- 10 of 35 total in 7 values (1 min, 5.00 avg, 010 max) diff --git a/t/t1603-added_statistics.out b/t/t1603-added_statistics.out index 57553da..767c4bd 100644 --- a/t/t1603-added_statistics.out +++ b/t/t1603-added_statistics.out @@ -3,30 +3,30 @@ barcat -sL2- input/unicode.txt 476 C -- 619 Ĉ -- 2094 D --<---+ -6552 E --<---+--=--->--------- +6552 E --<---+--=-->---------- 1062 F --<- 766 G --< 738 Ĝ --< 371 H - 7 Ĥ -5513 I --<---+--=--->------ +5513 I --<---+--=-->------- 1140 J --<- 38 Ĵ 2558 K --<---+-- -4253 L --<---+--=--->- +4253 L --<---+--=-->-- 2183 M --<---+- -6321 N --<---+--=--->-------- -8110 O --<---+--=--->--------------- +6321 N --<---+--=-->--------- +8110 O --<---+--=-->---------------- 2266 P --<---+- -4387 R --<---+--=--->-- -5462 S --<---+--=--->----- +4387 R --<---+--=-->--- +5462 S --<---+--=-->------ 331 Ŝ - -3534 T --<---+--=--- +3534 T --<---+--=--> 2579 U --<---+-- 320 Ŭ - 1458 V --<-- 383 Z - # 23731 whitespace -4217 … --<---+--=--->- +4217 … --<---+--=-->-- 0 68658 of 77982 total in 29 values over 31 lines (7 min, 2689.03 avg, 9324 max) diff --git a/t/t1662-uniq_words.out b/t/t1662-uniq_words.out index eb01ef4..1071feb 100644 --- a/t/t1662-uniq_words.out +++ b/t/t1662-uniq_words.out @@ -1,8 +1,8 @@ barcat --count input/duplicates.txt - 3 thrice --+->=-- - 2 twice --+-> + 3 thrice --+>-=-- + 2 twice --+>- 1 once --+ -10 most --+->=------------------- +10 most --+>-=------------------- 1 --+ 1 indented --+ 1 different --+ diff --git a/t/t1664-uniq_first_column.out b/t/t1664-uniq_first_column.out index f576e21..2e73cad 100644 --- a/t/t1664-uniq_first_column.out +++ b/t/t1664-uniq_first_column.out @@ -1,4 +1,4 @@ barcat -c -f0 input/duplicolumns.txt -10 prefix 1 1 --+------=--->------------ +10 prefix 1 1 --+------=>--------------- 1 random 2 2 --+ 1 text 1 2 --+ diff --git a/t/t1666-uniq_last_column.out b/t/t1666-uniq_last_column.out index 18fbeca..86eab52 100644 --- a/t/t1666-uniq_last_column.out +++ b/t/t1666-uniq_last_column.out @@ -1,5 +1,5 @@ barcat -c -f2 input/duplicolumns.txt -4 prefix 1 1 ----<-----+--=---- -6 random 2 2 ----<-----+--=-------->---- +4 prefix 1 1 ----<-----+--=---> +6 random 2 2 ----<-----+--=--->--------- 1 prefix 3 0 ----< 1 prefix 2 ----< diff --git a/t/t1668-uniq_regex.out b/t/t1668-uniq_regex.out index ed7caae..2f33ad1 100644 --- a/t/t1668-uniq_regex.out +++ b/t/t1668-uniq_regex.out @@ -1,5 +1,5 @@ barcat -c -f'prefix\ ' input/duplicolumns.txt 3 prefix 1 1 -------------------+ 2 random 2 2 -------------- -4 prefix 3 1 -------------------+--->--- +4 prefix 3 1 -------------------+>------ 3 prefix 2 1 -------------------+ diff --git a/t/t1669-uniq_capture.out b/t/t1669-uniq_capture.out index cf4cf4f..468a992 100644 --- a/t/t1669-uniq_capture.out +++ b/t/t1669-uniq_capture.out @@ -1,4 +1,4 @@ barcat -c -f'(e.)' input/duplicates.txt -17 thrice --+-------=--->------------ +17 thrice --+-------=>--------------- 1 indented -- 2 different --+ diff --git a/t/t1672-missing_uniq.out b/t/t1672-missing_uniq.out index f6dee51..eb15da9 100644 --- a/t/t1672-missing_uniq.out +++ b/t/t1672-missing_uniq.out @@ -1,4 +1,4 @@ barcat -cf1 -l0 input/duplicates.txt -18 -+-----------=----->----------------- +18 -+-----------=>---------------------- 1 -+ 1 -+ diff --git a/t/t1673-uniq_abbreviated.out b/t/t1673-uniq_abbreviated.out index 4b9fade..af18358 100644 --- a/t/t1673-uniq_abbreviated.out +++ b/t/t1673-uniq_abbreviated.out @@ -1,5 +1,5 @@ barcat -cf+1 -l5 input/duplicolumns.txt -4 pr… -----<-------+--=------ -6 ra… -----<-------+--=---------->------ +4 pr… -----<-------+--=-----> +6 ra… -----<-------+--=----->----------- 1 pr… -----< 1 pr… -----< diff --git a/t/t1704-input_separator.out b/t/t1704-input_separator.out index 57a6d61..13f593c 100644 --- a/t/t1704-input_separator.out +++ b/t/t1704-input_separator.out @@ -1,4 +1,4 @@ barcat -- input/seq3.txt 1 ------------- -2 ------------------------+ -3 ------------------------+------>------ +2 --------------------<---+ +3 --------------------<---+---->-------- diff --git a/t/t1705-input_twice.out b/t/t1705-input_twice.out index e02b4b9..b5c4963 100644 --- a/t/t1705-input_twice.out +++ b/t/t1705-input_twice.out @@ -1,7 +1,7 @@ barcat input/seq3.txt input/seq3.txt 1 ------------- -2 ------------------------+ -3 ------------------------+------>------ +2 -------------------<----+ +3 -------------------<----+----->------- 1 ------------- -2 ------------------------+ -3 ------------------------+------>------ +2 -------------------<----+ +3 -------------------<----+----->------- diff --git a/t/t1707-stdin.out b/t/t1707-stdin.out index 4d305b3..f4c6faa 100644 --- a/t/t1707-stdin.out +++ b/t/t1707-stdin.out @@ -1,4 +1,4 @@ cat input/seq3.txt | barcat 1 ------------- -2 ------------------------+ -3 ------------------------+------>------ +2 --------------------<---+ +3 --------------------<---+---->-------- diff --git a/t/t1712-value_parameters.out b/t/t1712-value_parameters.out index 6be292b..0f8fa39 100644 --- a/t/t1712-value_parameters.out +++ b/t/t1712-value_parameters.out @@ -1,10 +1,10 @@ barcat -- 1 4 8 2 6 3 9 5 2 1 ---- -4 ------------<---+ -8 ------------<---+-=--->----------- +4 ----------<-----+ +8 ----------<-----+-=--->----------- 2 -------- -6 ------------<---+-=--->-- -3 ------------< -9 ------------<---+-=--->--------------- -5 ------------<---+-=-- +6 ----------<-----+-=--->-- +3 ----------<-- +9 ----------<-----+-=--->--------------- +5 ----------<-----+-=-- 2 -------- diff --git a/t/t1713-negative_value.out b/t/t1713-negative_value.out index 340c60b..bbd5f7a 100644 --- a/t/t1713-negative_value.out +++ b/t/t1713-negative_value.out @@ -1,3 +1,3 @@ barcat -- -1 1 -1 - 1 ------------------|-----------------> + 1 -----------<------|----->------------ diff --git a/t/t1722-mixed_options.out b/t/t1722-mixed_options.out index b042754..5ffdb50 100644 --- a/t/t1722-mixed_options.out +++ b/t/t1722-mixed_options.out @@ -1,9 +1,9 @@ barcat -M 1 -l 2 hi 3 --st 4 -- 5 -1 --version 1 -----|------ … - 3 -----|------------<-=---+ - 4 -----|------------<-=---+-----> - 5 -----|------------<-=---+----->------ + 3 -----|---------<----=---+ + 4 -----|---------<----=---+--->-- + 5 -----|---------<----=---+--->-------- -1 … 12 total in 5 values over 7 lines (-1 min, 2.40 avg, 5 max) diff --git a/t/t1806-reset_uniq.out b/t/t1806-reset_uniq.out index 7a5bbe9..09e086f 100644 --- a/t/t1806-reset_uniq.out +++ b/t/t1806-reset_uniq.out @@ -1,12 +1,12 @@ barcat -ct-7 input/duplicates.txt -3 thrice ---------<-----+-=------->----- -2 twice ---------<-----+-=--- +3 thrice ---------<-----+-=-->---------- +2 twice ---------<-----+-=--> 1 once ---------< 1 most ---------< ----- +++++++++++++++++ -6 most -----<-+----=>------------------- +6 most -----<-+---->-------------------- 1 -----< -3 most ---+----=->-- +3 most ---+---->---- 1 indented ---+ 1 different ---+ 1 different ---+ diff --git a/t/t2120-prefixed.out b/t/t2120-prefixed.out index 6c88701..f947466 100644 --- a/t/t2120-prefixed.out +++ b/t/t2120-prefixed.out @@ -2,8 +2,8 @@ barcat --indicators= input/unvalued.txt nan ▍ -1 negative ------- ▏ -2 negativer -▋ 0 zero ------------=| -▋ .0 zeroer ------------=| -▋-00 zeroest ------------=| +▋ 0 zero ----------<-=| +▋ .0 zeroer ----------<-=| +▋-00 zeroest ----------<-=| -█1.5 positive ------------=|----------- +█1.5 positive ----------<-=|----------- diff --git a/t/t2122-outcommented.out b/t/t2122-outcommented.out index e42b4e7..88aa699 100644 --- a/t/t2122-outcommented.out +++ b/t/t2122-outcommented.out @@ -2,8 +2,8 @@ barcat --indicators=# input/unvalued.txt #nan # -1 negative ------- # -2 negativer -# 0 zero ------------=| -# .0 zeroer ------------=| -#-00 zeroest ------------=| +# 0 zero ----------<-=| +# .0 zeroer ----------<-=| +#-00 zeroest ----------<-=| # -#1.5 positive ------------=|----------- +#1.5 positive ----------<-=|----------- diff --git a/t/t2201-ascii.out b/t/t2201-ascii.out index e387afb..d1223a7 100644 --- a/t/t2201-ascii.out +++ b/t/t2201-ascii.out @@ -1,6 +1,6 @@ barcat -aHl7 input/ascii.txt -123u micro -------------<--=-+--------| -100m long> -------------<--=-+--------|- - -1 -------------<--=-+ +123u micro -----------<----=-+------>-| +100m long> -----------<----=-+------>-|- + -1 -----------<----=-+ -2 --------- -3 diff --git a/t/t2220-starry_line.out b/t/t2220-starry_line.out index 355ee4e..67ad86c 100644 --- a/t/t2220-starry_line.out +++ b/t/t2220-starry_line.out @@ -1,6 +1,6 @@ barcat --graph-format=* input/ascii.txt -123e-6 micro **********<**=+******| - .1 long line **********<**=+******|* - -1 **********<**=+ +123e-6 micro ********<****=+****>*| + .1 long line ********<****=+****>*|* + -1 ********<****=+ -2 ******* -3 diff --git a/t/t2221-unicode_line.out b/t/t2221-unicode_line.out index de992f3..19da98f 100644 --- a/t/t2221-unicode_line.out +++ b/t/t2221-unicode_line.out @@ -1,6 +1,6 @@ barcat --graph-format=─ input/ascii.txt -123e-6 micro ──────────<──=+──────| - .1 long line ──────────<──=+──────|─ - -1 ──────────<──=+ +123e-6 micro ────────<────=+────>─| + .1 long line ────────<────=+────>─|─ + -1 ────────<────=+ -2 ─────── -3 diff --git a/t/t2265-percentile_markers.out b/t/t2265-percentile_markers.out index 074aa4f..f361add 100644 --- a/t/t2265-percentile_markers.out +++ b/t/t2265-percentile_markers.out @@ -1,6 +1,6 @@ barcat --graph-format=─ --markers='550v 11v 00v 999v 0100v' input/ascii.txt -123e-6 micro 0──9──────────5─────── - .1 long line 0──9──────────5───────0 - -1 0──9──────────5 - -2 0──9─── +123e-6 micro 0─────────────5─────── + .1 long line 0─────────────5───────0 + -1 0─────────────5 + -2 0────── -3 -- 2.30.0