()
| 103 | |
| 104 | #[test] |
| 105 | fn test_empty_array() { |
| 106 | type T = [u8; 0]; |
| 107 | let empty_array = T::default(); |
| 108 | decode::<T>(&encode(&empty_array)).unwrap(); |
| 109 | decode::<Vec<T>>(&encode(&vec![empty_array; 100])).unwrap(); |
| 110 | } |
| 111 | |
| 112 | #[test] |
| 113 | fn test_length_overflow() { |