| 98 | use crate::types::domain::Domain; |
| 99 | |
| 100 | fn schema() -> ArraySchema { |
| 101 | ArraySchemaBuilder::new("g") |
| 102 | .dim(DimSpec::new( |
| 103 | "x", |
| 104 | DimType::Int64, |
| 105 | Domain::new(DomainBound::Int64(0), DomainBound::Int64(99)), |
| 106 | )) |
| 107 | .dim(DimSpec::new( |
| 108 | "y", |
| 109 | DimType::Int64, |
| 110 | Domain::new(DomainBound::Int64(0), DomainBound::Int64(99)), |
| 111 | )) |
| 112 | .attr(AttrSpec::new("v", AttrType::Int64, false)) |
| 113 | .tile_extents(vec![10, 10]) |
| 114 | .build() |
| 115 | .unwrap() |
| 116 | } |
| 117 | |
| 118 | #[test] |
| 119 | fn tile_indices_floor_by_extent() { |