| 54 | } |
| 55 | |
| 56 | void create_int32_array_negative_domain( |
| 57 | Context ctx, const std::string& array_name) { |
| 58 | Domain domain(ctx); |
| 59 | auto d1 = Dimension::create<int32_t>(ctx, "d1", {{-50, 50}}); |
| 60 | auto d2 = Dimension::create<int32_t>(ctx, "d2", {{-100, 100}}); |
| 61 | domain.add_dimensions(d1, d2); |
| 62 | auto a = Attribute::create<int32_t>(ctx, "a"); |
| 63 | ArraySchema schema(ctx, TILEDB_SPARSE); |
| 64 | schema.set_domain(domain); |
| 65 | schema.add_attribute(a); |
| 66 | schema.set_cell_order(TILEDB_HILBERT); |
| 67 | schema.set_capacity(2); |
| 68 | CHECK_NOTHROW(schema.check()); |
| 69 | Array::create(array_name, schema); |
| 70 | } |
| 71 | |
| 72 | void create_float32_array(Context ctx, const std::string& array_name) { |
| 73 | Domain domain(ctx); |
no test coverage detected