()
| 369 | |
| 370 | #[test] |
| 371 | fn test_branch_id_bytes_roundtrip() { |
| 372 | let id = BranchId::new(NodeId::new(12345), 99); |
| 373 | let bytes = id.to_bytes(); |
| 374 | let decoded = BranchId::from_bytes(&bytes); |
| 375 | assert_eq!(id, decoded); |
| 376 | } |
| 377 | |
| 378 | #[test] |
| 379 | fn test_branch_id_ordering() { |