testnumbat_codec/impl_for_types/
impl_empty.rs

1#[cfg(test)]
2pub mod tests {
3    use crate::test_util::{check_dep_encode_decode, check_top_encode_decode};
4    use alloc::vec::Vec;
5
6    #[test]
7    fn test_empty_vec_compacted() {
8        check_top_encode_decode(Vec::<u8>::new(), &[]);
9    }
10
11    #[test]
12    fn test_top_unit() {
13        check_top_encode_decode((), &[]);
14    }
15
16    #[test]
17    fn test_dep_unit() {
18        check_dep_encode_decode((), &[]);
19    }
20}