| 80 | use crate::types::domain::{Domain, DomainBound}; |
| 81 | |
| 82 | fn schema_4x4() -> ArraySchema { |
| 83 | ArraySchemaBuilder::new("g") |
| 84 | .dim(DimSpec::new( |
| 85 | "x", |
| 86 | DimType::Int64, |
| 87 | Domain::new(DomainBound::Int64(0), DomainBound::Int64(3)), |
| 88 | )) |
| 89 | .dim(DimSpec::new( |
| 90 | "y", |
| 91 | DimType::Int64, |
| 92 | Domain::new(DomainBound::Int64(0), DomainBound::Int64(3)), |
| 93 | )) |
| 94 | .attr(AttrSpec::new("v", AttrType::Int64, true)) |
| 95 | .tile_extents(vec![4, 4]) |
| 96 | .build() |
| 97 | .unwrap() |
| 98 | } |
| 99 | |
| 100 | #[test] |
| 101 | fn cells_per_tile_is_product_of_extents() { |