poulpy/core/src/glwe/tests/generic_serialization.rs
core/src/glwe/tests/generic_serialization.rsRaw
1use backend::hal::tests::serialization::test_reader_writer_interface;
2
3use crate::{GLWECiphertext, GLWECiphertextCompressed};
4
5#[test]
6fn test_serialization() {
7 let original: GLWECiphertext<Vec<u8>> = GLWECiphertext::alloc(1024, 12, 54, 3);
8 test_reader_writer_interface(original);
9}
10
11#[test]
12fn test_compressed_serialization() {
13 let original: GLWECiphertextCompressed<Vec<u8>> = GLWECiphertextCompressed::alloc(1024, 12, 54, 3);
14 test_reader_writer_interface(original);
15}