@@ -34,7 +34,7 @@ struct RowGroupPruningTest {
34
34
expected_files_pruned_by_statistics : Option < usize > ,
35
35
expected_row_group_matched_by_bloom_filter : Option < usize > ,
36
36
expected_row_group_pruned_by_bloom_filter : Option < usize > ,
37
- expected_results : usize ,
37
+ expected_rows : usize ,
38
38
}
39
39
impl RowGroupPruningTest {
40
40
// Start building the test configuration
@@ -48,7 +48,7 @@ impl RowGroupPruningTest {
48
48
expected_files_pruned_by_statistics : None ,
49
49
expected_row_group_matched_by_bloom_filter : None ,
50
50
expected_row_group_pruned_by_bloom_filter : None ,
51
- expected_results : 0 ,
51
+ expected_rows : 0 ,
52
52
}
53
53
}
54
54
@@ -99,9 +99,9 @@ impl RowGroupPruningTest {
99
99
self
100
100
}
101
101
102
- // Set the expected rows for the test
102
+ /// Set the number of expected rows from the output of this test
103
103
fn with_expected_rows ( mut self , rows : usize ) -> Self {
104
- self . expected_results = rows;
104
+ self . expected_rows = rows;
105
105
self
106
106
}
107
107
@@ -145,8 +145,10 @@ impl RowGroupPruningTest {
145
145
) ;
146
146
assert_eq ! (
147
147
output. result_rows,
148
- self . expected_results,
149
- "mismatched expected rows: {}" ,
148
+ self . expected_rows,
149
+ "Expected {} rows, got {}: {}" ,
150
+ output. result_rows,
151
+ self . expected_rows,
150
152
output. description( ) ,
151
153
) ;
152
154
}
0 commit comments