()
| 89 | } |
| 90 | |
| 91 | fn tile() -> SparseTile { |
| 92 | let s = schema(); |
| 93 | let mut b = SparseTileBuilder::new(&s); |
| 94 | b.push( |
| 95 | &[CoordValue::Int64(0)], |
| 96 | &[ |
| 97 | CellValue::Int64(1), |
| 98 | CellValue::Float64(1.5), |
| 99 | CellValue::String("x".into()), |
| 100 | ], |
| 101 | ) |
| 102 | .unwrap(); |
| 103 | b.push( |
| 104 | &[CoordValue::Int64(1)], |
| 105 | &[ |
| 106 | CellValue::Int64(2), |
| 107 | CellValue::Float64(2.5), |
| 108 | CellValue::String("y".into()), |
| 109 | ], |
| 110 | ) |
| 111 | .unwrap(); |
| 112 | b.build() |
| 113 | } |
| 114 | |
| 115 | #[test] |
| 116 | fn project_keeps_subset_in_order() { |