use backend::hal::{ api::VecZnxAlloc, layouts::{Backend, Module}, tests::serialization::test_reader_writer_interface, }; use crate::{GLWECiphertext, GLWECiphertextCompressed}; pub(crate) fn test_serialization(module: &Module) where Module: VecZnxAlloc, { let original: GLWECiphertext> = GLWECiphertext::alloc(module, 12, 54, 3); test_reader_writer_interface(original); } pub(crate) fn test_serialization_compressed(module: &Module) where Module: VecZnxAlloc, { let original: GLWECiphertextCompressed> = GLWECiphertextCompressed::alloc(module, 12, 54, 3); test_reader_writer_interface(original); }