Skip to content

Commit

Permalink
Add data validation on schema evolution test after attribute re-add.
Browse files Browse the repository at this point in the history
  • Loading branch information
bekadavis9 committed Dec 5, 2024
1 parent ae2c2a6 commit e44f67a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/src/unit-cppapi-schema-evolution.cc
Original file line number Diff line number Diff line change
Expand Up @@ -881,6 +881,13 @@ TEST_CASE(
.set_offsets_buffer("a", offsets);
query_r.submit();
array_r.close();
CHECK(buffer.size() == 0);
CHECK_THAT(buffer, Catch::Matchers::Equals(std::string{""}));
CHECK(offsets.size() == 10);
CHECK_THAT(
offsets,
Catch::Matchers::Equals(
std::vector<uint64_t>{0, 1, 2, 3, 4, 5, 6, 7, 8, 9}));

// Read the original array
std::vector<int> a_data(10);
Expand Down

0 comments on commit e44f67a

Please sign in to comment.