| 85 | use crate::types::domain::{Domain, DomainBound}; |
| 86 | |
| 87 | fn schema(extents: Vec<u64>) -> ArraySchema { |
| 88 | ArraySchemaBuilder::new("g") |
| 89 | .dim(DimSpec::new( |
| 90 | "x", |
| 91 | DimType::Int64, |
| 92 | Domain::new(DomainBound::Int64(0), DomainBound::Int64(99)), |
| 93 | )) |
| 94 | .dim(DimSpec::new( |
| 95 | "y", |
| 96 | DimType::Int64, |
| 97 | Domain::new(DomainBound::Int64(0), DomainBound::Int64(99)), |
| 98 | )) |
| 99 | .attr(AttrSpec::new("v", AttrType::Int64, true)) |
| 100 | .tile_extents(extents) |
| 101 | .build() |
| 102 | .unwrap() |
| 103 | } |
| 104 | |
| 105 | #[test] |
| 106 | fn rechunk_splits_into_smaller_tiles() { |