Skip to content
This repository was archived by the owner on Feb 26, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion tests/unit/test_all_types.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,8 @@ void check_read_regular(const std::string& file_name, const std::vector<size_t>&
using reference_type = typename testing::MultiDimVector<base_type, traits::rank>::type;

auto file = File(file_name, File::Truncate);
auto expected = testing::copy<reference_type>(traits::create(dims), dims);
auto raw_expected = traits::create(dims);
auto expected = testing::copy<reference_type>(raw_expected, dims);

auto dataspace = DataSpace(dims);
auto attr = testing::AttributeCreateTraits::create<base_type>(file, "dset", dataspace);
Expand All @@ -139,6 +140,7 @@ void check_read_regular(const std::string& file_name, const std::vector<size_t>&
}

testing::ContainerTraits<reference_type>::deallocate(expected, dims);
testing::ContainerTraits<Container>::deallocate(raw_expected, dims);
}

template <class Container>
Expand Down
Loading