()
| 394 | |
| 395 | #[test] |
| 396 | fn test_branch_id_serde() { |
| 397 | let id = BranchId::new(NodeId::new(100), 7); |
| 398 | let json = serde_json::to_string(&id).unwrap(); |
| 399 | let decoded: BranchId = serde_json::from_str(&json).unwrap(); |
| 400 | assert_eq!(id, decoded); |
| 401 | } |
| 402 | |
| 403 | // ------------------------------------------------------------------------- |
| 404 | // LeafId Tests |