Skip to content

Commit

Permalink
clang-format all source files
Browse files Browse the repository at this point in the history
  • Loading branch information
Wentzell committed Apr 24, 2024
1 parent 96f63a8 commit 9aa51c9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 3 additions & 3 deletions test/c++/h5_array_interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -234,17 +234,17 @@ TEST(H5, ArrayInterface3DArray) {
// read in the data written to view_2 into a 2D array
std::vector<int> data_in_2(18, 0);
h5::array_interface::array_view view_in_2(h5::hdf5_type<int>(), (void *)data_in_2.data(), 2, false);
view_in_2.slab = slab_2;
view_in_2.slab = slab_2;
view_in_2.parent_shape = shape_2;
h5::array_interface::read(file, "view_2", view_in_2);

// read in the 3x3 arrays starting at (0, 0, 0) and (2, 0, 0) directly from view_1
std::vector<int> data_in_3(18, 0);
h5::array_interface::array_view view_in_3(h5::hdf5_type<int>(), (void *)data_in_3.data(), 2, false);
view_in_3.slab = slab_2;
view_in_3.slab = slab_2;
view_in_3.parent_shape = shape_2;
h5::array_interface::read(file, "view_1", view_in_3, view_2.slab);

// check results
// check results
for (int i = 0; i < 18; ++i) { EXPECT_EQ(data_in_2[i], data_in_3[i]); }
}
2 changes: 0 additions & 2 deletions test/c++/h5_vector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@ TEST(H5, VectorOfCustomType) {
{
h5::file file{"test_vec_custom.h5", 'w'};
h5::write(file, "vec_foo", v);

}

{
Expand All @@ -141,4 +140,3 @@ TEST(H5, VectorOfCustomType) {
EXPECT_EQ(v, v_in);
}
}

0 comments on commit 9aa51c9

Please sign in to comment.