| 134 | use crate::types::domain::Domain; |
| 135 | |
| 136 | fn schema_2d() -> ArraySchema { |
| 137 | ArraySchemaBuilder::new("g") |
| 138 | .dim(DimSpec::new( |
| 139 | "x", |
| 140 | DimType::Int64, |
| 141 | Domain::new(DomainBound::Int64(0), DomainBound::Int64(100)), |
| 142 | )) |
| 143 | .dim(DimSpec::new( |
| 144 | "y", |
| 145 | DimType::Int64, |
| 146 | Domain::new(DomainBound::Int64(0), DomainBound::Int64(100)), |
| 147 | )) |
| 148 | .attr(AttrSpec::new("v", AttrType::Int64, false)) |
| 149 | .tile_extents(vec![10, 10]) |
| 150 | .build() |
| 151 | .unwrap() |
| 152 | } |
| 153 | |
| 154 | #[test] |
| 155 | fn bits_per_dim_distributes_64() { |