@@ -621,10 +621,10 @@ mod tests {
621621 fn materialize_zeroes_trailing_coefficients ( ) {
622622 // units depends on params 0, 1, 2; cardinality depends only on param 0.
623623 // Params 1 and 2 have implicit zero in cardinality, so the product
624- // should zero those coefficients rather than preserving them.
624+ // should drop those coefficients rather than preserving them.
625625 // units = 0..0 + 3*p0 + 5*p1 + 7*p2
626626 // cardinality = 0..0 + 2*p0
627- // element-wise: [3*2, 5*0, 7*0 ] = [6, 0, 0]
627+ // element-wise: [3*2] = [6] (trailing terms truncated)
628628 let footprint = Footprint {
629629 units : Estimate :: Affine ( AffineEquation {
630630 coefficients : [ 3 , 5 , 7 ] . into_iter ( ) . collect ( ) ,
@@ -641,7 +641,7 @@ mod tests {
641641 let Estimate :: Affine ( eq) = & result else {
642642 panic ! ( "expected Affine, got {result:?}" ) ;
643643 } ;
644- assert_eq ! ( eq. coefficients. as_slice( ) , & [ 6 , 0 , 0 ] ) ;
644+ assert_eq ! ( eq. coefficients. as_slice( ) , & [ 6 ] ) ;
645645 assert_eq ! ( eq. constant, InformationRange :: empty( ) ) ;
646646 }
647647}
0 commit comments