File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed
Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -1843,6 +1843,25 @@ mod tests {
18431843 test_delta_bit_packed_decode :: < Int32Type > ( vec ! [ block_data] ) ;
18441844 }
18451845
1846+ #[ test]
1847+ fn test_delta_bit_packed_int32_mixed_large ( ) {
1848+ // should be enough for 4 mini-blocks plus a little so we get some
1849+ // mixed mini-blocks
1850+ const BLOCK_SIZE : i32 = 133 ;
1851+ let block1_data = ( 0 ..BLOCK_SIZE ) . map ( |i| ( i * 7 ) % 11 ) . collect ( ) ;
1852+ let block2_data = vec ! [ 3 ; BLOCK_SIZE as usize ] ;
1853+ let block3_data = ( 0 ..BLOCK_SIZE ) . map ( |i| ( i * 5 ) % 13 ) . collect ( ) ;
1854+ let block4_data = ( 0 ..BLOCK_SIZE ) . collect ( ) ;
1855+ let block5_data = ( 0 ..BLOCK_SIZE ) . map ( |i| ( i * 3 ) % 17 ) . collect ( ) ;
1856+ test_delta_bit_packed_decode :: < Int32Type > ( vec ! [
1857+ block1_data,
1858+ block2_data,
1859+ block3_data,
1860+ block4_data,
1861+ block5_data,
1862+ ] ) ;
1863+ }
1864+
18461865 #[ test]
18471866 fn test_delta_bit_packed_int64_single_value_large ( ) {
18481867 let block_data = vec ! [ 5 ; 10240 ] ;
You can’t perform that action at this time.
0 commit comments