(dict: &DimDict)
| 209 | } |
| 210 | |
| 211 | fn roundtrip(dict: &DimDict) -> DimDict { |
| 212 | let mut buf = Vec::new(); |
| 213 | encode_coord_axis_rle(dict, &mut buf).unwrap(); |
| 214 | let mut pos = 0; |
| 215 | decode_coord_axis_rle(&buf, &mut pos).unwrap() |
| 216 | } |
| 217 | |
| 218 | #[test] |
| 219 | fn empty_dict_roundtrip() { |