()
| 319 | |
| 320 | #[test] |
| 321 | fn test_trunk_id_bytes_roundtrip() { |
| 322 | let id = TrunkId::new(NodeId::new(12345), 99); |
| 323 | let bytes = id.to_bytes(); |
| 324 | let decoded = TrunkId::from_bytes(&bytes); |
| 325 | assert_eq!(id, decoded); |
| 326 | } |
| 327 | |
| 328 | #[test] |
| 329 | fn test_trunk_id_ordering() { |