Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
lwwmanning committed Sep 24, 2024
1 parent bcd7761 commit ffd2b4d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions encodings/alp/src/compress.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ mod tests {
encoded.encoded().as_primitive().maybe_null_slice::<i32>(),
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!(
Expand All @@ -141,7 +141,7 @@ mod tests {
encoded.encoded().as_primitive().maybe_null_slice::<i32>(),
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];
Expand All @@ -159,7 +159,7 @@ mod tests {
encoded.encoded().as_primitive().maybe_null_slice::<i64>(),
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::<f64>());
Expand All @@ -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();
Expand Down

0 comments on commit ffd2b4d

Please sign in to comment.