diff --git a/encodings/alp/src/compress.rs b/encodings/alp/src/compress.rs index 0029eb3051..e05c89485b 100644 --- a/encodings/alp/src/compress.rs +++ b/encodings/alp/src/compress.rs @@ -123,7 +123,7 @@ mod tests { encoded.encoded().as_primitive().maybe_null_slice::(), vec![1234; 1025] ); - assert_eq!(encoded.exponents(), Exponents { e: 4, f: 1 }); + assert_eq!(encoded.exponents(), Exponents { e: 9, f: 6 }); let decoded = decompress(encoded).unwrap(); assert_eq!( @@ -141,7 +141,7 @@ mod tests { encoded.encoded().as_primitive().maybe_null_slice::(), vec![0, 1234, 0] ); - assert_eq!(encoded.exponents(), Exponents { e: 4, f: 1 }); + assert_eq!(encoded.exponents(), Exponents { e: 9, f: 6 }); let decoded = decompress(encoded).unwrap(); let expected = vec![0f32, 1.234f32, 0f32]; @@ -159,7 +159,7 @@ mod tests { encoded.encoded().as_primitive().maybe_null_slice::(), vec![1234i64, 2718, 2718, 4000] // fill forward ); - assert_eq!(encoded.exponents(), Exponents { e: 3, f: 0 }); + assert_eq!(encoded.exponents(), Exponents { e: 16, f: 13 }); let decoded = decompress(encoded).unwrap(); assert_eq!(values, decoded.maybe_null_slice::()); @@ -179,7 +179,7 @@ mod tests { let encoded = alp_encode(&array).unwrap(); assert!(encoded.patches().is_some()); - assert_eq!(encoded.exponents(), Exponents { e: 3, f: 0 }); + assert_eq!(encoded.exponents(), Exponents { e: 16, f: 13 }); for idx in 0..3 { let s = scalar_at(encoded.as_ref(), idx).unwrap();