Skip to content

Commit

Permalink
[tests] remove histogram column from test goldens #1807
Browse files Browse the repository at this point in the history
  • Loading branch information
saulpw authored and anjakefala committed Jul 9, 2023
1 parent 289e577 commit 3b9015c
Show file tree
Hide file tree
Showing 10 changed files with 33 additions and 32 deletions.
1 change: 1 addition & 0 deletions tests/error-passthru.vd
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ benchmark Quantity 1 select-equal-cell ,
benchmark Quantity delete-cells gzd
benchmark Quantity addcol-expr Quantity.foo =
benchmark Quantity.foo freq-col F
benchmark_Quantity.foo_freq histogram hide-col - Hide current column
10 changes: 4 additions & 6 deletions tests/extend.vd
Original file line number Diff line number Diff line change
@@ -1,20 +1,18 @@
sheet col row longname input keystrokes comment
open-file tests/data2.tsv o
open-file tests/data1.tsv o
data1 jump-sheet-2 ^[2
data2 Key key-col !
data2 jump-sheet-1 ^[1
data1 Key key-col !
sheets-stack S
data1 sheets-stack S
sheets キdata2 select-row s
sheets キdata1 select-row s
sheets join-sheets extend &
sheets join-selected extend &
data1+data2 A freq-col F
data1+data2_A_freq jump-sheet-1 ^[1
data1 dup-rows g"
data1_copy A key-col !
data1_copy Key key-col !
data1_copy sheets-all S
sheets_all キdata1_copy select-row s
sheets_all キdata1+data2_A_freq select-row s
sheets_all join-sheets extend &
sheets_all join-selected extend &
data1+data2_A_freq+data1_copy histogram hide-col - Hide current column
2 changes: 1 addition & 1 deletion tests/freq-same-int.vd
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ benchmark Quantity キ2018-07-03 setcol-input 3 ge
benchmark unselect-rows gu
benchmark Quantity type-int #
benchmark Quantity freq-col F
benchmark_Quantity_freq quit-sheet q
benchmark Quantity キ2018-07-03 edit-cell 2 e
benchmark Quantity freq-col F
benchmark_Quantity_freq histogram hide-col - Hide current column
4 changes: 2 additions & 2 deletions tests/golden/error-passthru.tsv
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Quantity.foo count percent histogram
#ERR 51 100.00 **************************************************
Quantity.foo count percent
#ERR 51 100.00
8 changes: 4 additions & 4 deletions tests/golden/extend.tsv
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
A count percent histogram data1_copy_Key data1_copy_B
a1 1 33.33 ************************************************** 1 b1
c1 1 33.33 ************************************************** 2 d1
e1 1 33.33 ************************************************** 2 f1
A count percent data1_copy_Key data1_copy_B
a1 1 33.33 1 b1
c1 1 33.33 2 d1
e1 1 33.33 2 f1
6 changes: 3 additions & 3 deletions tests/golden/freq-same-int.tsv
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Quantity count percent histogram
2 1 1.96 *
3 50 98.04 **************************************************
Quantity count percent
2 1 1.96
3 50 98.04
12 changes: 6 additions & 6 deletions tests/golden/histogram.tsv
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Quantity count percent histogram
2.00 - 30.40 26 92.86 **************************************************
30.40 - 58.80 1 3.57 *
58.80 - 87.20 0 0.00
87.20 - 115.60 0 0.00
115.60 - 144.00 1 3.57 *
Quantity count percent
2.00 - 30.40 26 92.86
30.40 - 58.80 1 3.57
58.80 - 87.20 0 0.00
87.20 - 115.60 0 0.00
115.60 - 144.00 1 3.57
16 changes: 8 additions & 8 deletions tests/golden/numeric_binning.tsv
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Quantity count percent histogram
1.00 - 21.43 46 90.20 **************************************************
21.43 - 41.86 3 5.88 ***
41.86 - 62.29 1 1.96 *
123.57 - 144.00 1 1.96 *
62.29 - 82.71 0 0.00
82.71 - 103.14 0 0.00
103.14 - 123.57 0 0.00
Quantity count percent
1.00 - 21.43 46 90.20
21.43 - 41.86 3 5.88
41.86 - 62.29 1 1.96
123.57 - 144.00 1 1.96
62.29 - 82.71 0 0.00
82.71 - 103.14 0 0.00
103.14 - 123.57 0 0.00
3 changes: 2 additions & 1 deletion tests/histogram.vd
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
sheet col row longname input keystrokes comment
open-file sample_data/benchmark.csv o
numeric_binning set-option True
global numeric_binning set-option True
benchmark Quantity type-int #
benchmark Quantity addcol-expr Quantity > 1 =
benchmark Quantity > 1 select-col-regex True |
benchmark dup-selected "
benchmark_selectedref Quantity freq-col F
benchmark_selectedref_Quantity_freq histogram hide-col - Hide current column
3 changes: 2 additions & 1 deletion tests/numeric_binning.vd
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
sheet col row longname input keystrokes comment
open-file sample_data/benchmark.csv o
override numeric_binning set-option True
global numeric_binning set-option True
benchmark Quantity type-int #
benchmark Quantity freq-col F
benchmark_Quantity_freq count sort-desc ]
benchmark_Quantity_freq histogram hide-col - Hide current column

0 comments on commit 3b9015c

Please sign in to comment.