| 326 | use nodedb_array::types::domain::{Domain, DomainBound}; |
| 327 | |
| 328 | fn schema() -> ArraySchema { |
| 329 | ArraySchemaBuilder::new("a") |
| 330 | .dim(DimSpec::new( |
| 331 | "x", |
| 332 | DimType::Int64, |
| 333 | Domain::new(DomainBound::Int64(0), DomainBound::Int64(15)), |
| 334 | )) |
| 335 | .dim(DimSpec::new( |
| 336 | "y", |
| 337 | DimType::Int64, |
| 338 | Domain::new(DomainBound::Int64(0), DomainBound::Int64(15)), |
| 339 | )) |
| 340 | .attr(AttrSpec::new("v", AttrType::Int64, true)) |
| 341 | .tile_extents(vec![4, 4]) |
| 342 | .build() |
| 343 | .unwrap() |
| 344 | } |
| 345 | |
| 346 | fn coord(x: i64, y: i64) -> Vec<CoordValue> { |
| 347 | vec![CoordValue::Int64(x), CoordValue::Int64(y)] |