| 335 | use crate::types::domain::{Domain, DomainBound}; |
| 336 | |
| 337 | fn schema() -> ArraySchema { |
| 338 | ArraySchemaBuilder::new("g") |
| 339 | .dim(DimSpec::new( |
| 340 | "chrom", |
| 341 | DimType::Int64, |
| 342 | Domain::new(DomainBound::Int64(0), DomainBound::Int64(24)), |
| 343 | )) |
| 344 | .dim(DimSpec::new( |
| 345 | "pos", |
| 346 | DimType::Int64, |
| 347 | Domain::new(DomainBound::Int64(0), DomainBound::Int64(1_000_000)), |
| 348 | )) |
| 349 | .attr(AttrSpec::new("variant", AttrType::String, false)) |
| 350 | .attr(AttrSpec::new("qual", AttrType::Float64, true)) |
| 351 | .tile_extents(vec![1, 1_000_000]) |
| 352 | .build() |
| 353 | .unwrap() |
| 354 | } |
| 355 | |
| 356 | #[test] |
| 357 | fn sparse_tile_collects_columns_in_order() { |