()
| 359 | |
| 360 | #[test] |
| 361 | fn decoding_bool_node_map_works() { |
| 362 | let bool_node_map = NodeSubset([true, false, true, true, true].iter().cloned().collect()); |
| 363 | let encoded: Vec<_> = bool_node_map.encode(); |
| 364 | let decoded = NodeSubset::decode(&mut encoded.as_slice()).expect("decode should work"); |
| 365 | assert_eq!(decoded, bool_node_map); |
| 366 | } |
| 367 | |
| 368 | #[test] |
| 369 | fn test_bool_node_map_has_efficient_encoding() { |
nothing calls this directly
no test coverage detected