Skip to content

Commit

Permalink
add additional test
Browse files Browse the repository at this point in the history
  • Loading branch information
supinie committed Jun 4, 2024
1 parent 17b8688 commit 7cc3175
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/tests/polynomials.rs
Original file line number Diff line number Diff line change
Expand Up @@ -460,6 +460,12 @@ pub(in crate::tests) mod poly_tests {
assert_le!(Q as i16 - (original_coeff - new_coeff).abs(), 150, "original: {original_coeff}, new: {new_coeff}");
}
}

let mut comp_buf = [0u8; 160];
let _ = decompressed.compress(&mut comp_buf[..sec_level.poly_compressed_bytes()], &sec_level)
.unwrap();

assert_eq!(comp_buf, buf);
}

#[test]
Expand Down

0 comments on commit 7cc3175

Please sign in to comment.