Skip to content

Commit

Permalink
Whitespace.
Browse files Browse the repository at this point in the history
  • Loading branch information
1uc committed May 24, 2024
1 parent fdd5063 commit 2e4a41a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
4 changes: 2 additions & 2 deletions tests/unit/compary_arrays.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,5 +76,5 @@ void compare_arrays(const Actual& actual,
compare_arrays(expected, actual, dims, [](base_type a, base_type b) { return a == b; });
}

}
}
} // namespace testing
} // namespace HighFive
11 changes: 5 additions & 6 deletions tests/unit/data_generator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ struct ContainerTraits<T[n]> {
}

static void assign(container_type& dst, const container_type& src) {
for(size_t i = 0; i < n; ++i) {
for (size_t i = 0; i < n; ++i) {
dst[i] = src[i];
}
}
Expand Down Expand Up @@ -757,11 +757,10 @@ struct MultiDimVector<T, 0> {

template <class C, class F>
void initialize_impl(C& array,
const std::vector<size_t>& dims,
std::vector<size_t>& indices,
size_t axis,
F f) {

const std::vector<size_t>& dims,
std::vector<size_t>& indices,
size_t axis,
F f) {
using traits = ContainerTraits<C>;
if (axis == indices.size()) {
auto value = f(indices);
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/test_all_types.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ TEMPLATE_PRODUCT_TEST_CASE("Scalar in std::vector<std::byte>", "[Types]", std::v
template <class Container, class Expected, class Obj>
auto check_read_auto(const Expected& expected, const std::vector<size_t>& dims, const Obj& obj) ->
typename std::enable_if<!testing::ContainerTraits<Container>::is_view>::type {
testing::compare_arrays(obj.template read<Container>(), expected, dims);
testing::compare_arrays(obj.template read<Container>(), expected, dims);
}

template <class Container, class Expected, class Obj>
Expand Down

0 comments on commit 2e4a41a

Please sign in to comment.