From 2e64bb6350d91a8917f6aaad9cab82a9a6880325 Mon Sep 17 00:00:00 2001 From: Luc Grosheintz Date: Thu, 23 May 2024 21:13:53 +0200 Subject: [PATCH] Whitespace. --- tests/unit/compary_arrays.hpp | 4 ++-- tests/unit/data_generator.hpp | 11 +++++------ tests/unit/test_all_types.cpp | 2 +- 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/tests/unit/compary_arrays.hpp b/tests/unit/compary_arrays.hpp index c488b49cb..8a867a55d 100644 --- a/tests/unit/compary_arrays.hpp +++ b/tests/unit/compary_arrays.hpp @@ -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 diff --git a/tests/unit/data_generator.hpp b/tests/unit/data_generator.hpp index 1927ed4d5..e4e7dfa85 100644 --- a/tests/unit/data_generator.hpp +++ b/tests/unit/data_generator.hpp @@ -303,7 +303,7 @@ struct ContainerTraits { } 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]; } } @@ -757,11 +757,10 @@ struct MultiDimVector { template void initialize_impl(C& array, - const std::vector& dims, - std::vector& indices, - size_t axis, - F f) { - + const std::vector& dims, + std::vector& indices, + size_t axis, + F f) { using traits = ContainerTraits; if (axis == indices.size()) { auto value = f(indices); diff --git a/tests/unit/test_all_types.cpp b/tests/unit/test_all_types.cpp index 688164e0e..0a18e0257 100644 --- a/tests/unit/test_all_types.cpp +++ b/tests/unit/test_all_types.cpp @@ -86,7 +86,7 @@ TEMPLATE_PRODUCT_TEST_CASE("Scalar in std::vector", "[Types]", std::v template auto check_read_auto(const Expected& expected, const std::vector& dims, const Obj& obj) -> typename std::enable_if::is_view>::type { - testing::compare_arrays(obj.template read(), expected, dims); + testing::compare_arrays(obj.template read(), expected, dims); } template