From e44f67adadc3765ba28f97dbcdaa8570e8975624 Mon Sep 17 00:00:00 2001 From: Rebekah Davis Date: Thu, 5 Dec 2024 11:03:32 -0500 Subject: [PATCH] Add data validation on schema evolution test after attribute re-add. --- test/src/unit-cppapi-schema-evolution.cc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/src/unit-cppapi-schema-evolution.cc b/test/src/unit-cppapi-schema-evolution.cc index 8ef43426247..1a80b6d4842 100644 --- a/test/src/unit-cppapi-schema-evolution.cc +++ b/test/src/unit-cppapi-schema-evolution.cc @@ -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{0, 1, 2, 3, 4, 5, 6, 7, 8, 9})); // Read the original array std::vector a_data(10);