Skip to content

Commit

Permalink
Test 2
Browse files Browse the repository at this point in the history
  • Loading branch information
davisp committed Mar 4, 2024
1 parent bed723d commit 4cc5a52
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion test/src/unit-cppapi-query-condition-sets.cc
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,22 @@ TEST_CASE_METHOD(
check_read(qc, [](const QCSetsCell& c) { return !(c.a2 == "wilma"); });
}

TEST_CASE_METHOD(
CPPQueryConditionFx,
"IN - String With Non-Enumeration Value",
"[query-condition][set][non-enum-value][string]") {
auto type = GENERATE(
TestArrayType::DENSE, TestArrayType::SPARSE, TestArrayType::LEGACY);
auto serialize = SERIALIZE_TESTS();
create_array(type, serialize);

std::vector<std::string> values = {"wilma", "astro"};
auto qc =
QueryConditionExperimental::create(ctx_, "attr2", values, TILEDB_NOT_IN);

check_read(qc, [](const QCSetsCell& c) { return !(c.a2 == "wilma"); });
}

TEST_CASE_METHOD(
CPPQueryConditionFx,
"NOT_IN - Enumeration",
Expand Down Expand Up @@ -828,7 +844,7 @@ void CPPQueryConditionFx::rm_array() {
}

void CPPQueryConditionFx::generate_data() {
num_elements_ = 10; // * 1024;
num_elements_ = 1024;

dim_values_.clear();
attr1_values_.clear();
Expand Down

0 comments on commit 4cc5a52

Please sign in to comment.