()
| 263 | |
| 264 | #[test] |
| 265 | fn mixed_runs_roundtrip() { |
| 266 | // Two chromosomes, each repeated 500 times. |
| 267 | let mut indices = vec![0u32; 500]; |
| 268 | indices.extend(vec![1u32; 500]); |
| 269 | let d = make_dict(indices, vec![CoordValue::Int64(1), CoordValue::Int64(2)]); |
| 270 | let out = roundtrip(&d); |
| 271 | assert_eq!(out.indices, d.indices); |
| 272 | assert_eq!(out.values, d.values); |
| 273 | } |
| 274 | |
| 275 | #[test] |
| 276 | fn large_rle_roundtrip() { |