| 62 | use crate::types::domain::{Domain, DomainBound}; |
| 63 | |
| 64 | fn schema() -> ArraySchema { |
| 65 | ArraySchemaBuilder::new("g") |
| 66 | .dim(DimSpec::new( |
| 67 | "x", |
| 68 | DimType::Int64, |
| 69 | Domain::new(DomainBound::Int64(0), DomainBound::Int64(31)), |
| 70 | )) |
| 71 | .dim(DimSpec::new( |
| 72 | "y", |
| 73 | DimType::Int64, |
| 74 | Domain::new(DomainBound::Int64(0), DomainBound::Int64(31)), |
| 75 | )) |
| 76 | .attr(AttrSpec::new("v", AttrType::Int64, false)) |
| 77 | .tile_extents(vec![8, 8]) |
| 78 | .build() |
| 79 | .unwrap() |
| 80 | } |
| 81 | |
| 82 | #[test] |
| 83 | fn hilbert_prefix_distinct_for_distinct_cells() { |