()
| 378 | |
| 379 | #[test] |
| 380 | fn single_string() { |
| 381 | let strings: Vec<&[u8]> = vec![b"hello world"]; |
| 382 | let encoded = encode(&strings); |
| 383 | let decoded = decode(&encoded).unwrap(); |
| 384 | assert_eq!(decoded.len(), 1); |
| 385 | assert_eq!(decoded[0], b"hello world"); |
| 386 | } |
| 387 | |
| 388 | #[test] |
| 389 | fn multiple_strings_roundtrip() { |