Skip to content

Commit

Permalink
Add comment to improve test readability
Browse files Browse the repository at this point in the history
  • Loading branch information
dalg24 committed Jan 4, 2023
1 parent 98448e4 commit add2bfa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/tstDetailsExpandHalfToFull.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,18 +56,22 @@ BOOST_AUTO_TEST_CASE_TEMPLATE(expand_half_to_full, DeviceType,
(std::vector<int>{}), (std::vector<int>{0}),
(std::vector<int>{}));

// (0,0) -> (0,0)(0,0)
ARBORX_TEST_EXPAND_HALF_TO_FULL(
exec_space, (std::vector<int>{0, 1}), (std::vector<int>{0}),
(std::vector<int>{0, 2}), (std::vector<int>{0, 0}));

// (0,0)(0,0) -> (0,0)(0,0)(0,0)(0,0)
ARBORX_TEST_EXPAND_HALF_TO_FULL(
exec_space, (std::vector<int>{0, 2}), (std::vector<int>{0, 0}),
(std::vector<int>{0, 4}), (std::vector<int>{0, 0, 0, 0}));

// (0,0)(0,1) -> (0,0)(0,1)(0,0)(1,0)
ARBORX_TEST_EXPAND_HALF_TO_FULL(
exec_space, (std::vector<int>{0, 2, 2}), (std::vector<int>{0, 1}),
(std::vector<int>{0, 3, 4}), (std::vector<int>{0, 1, 0, 0}));

// (1,0) -> (0,1)(1,0)
ARBORX_TEST_EXPAND_HALF_TO_FULL(
exec_space, (std::vector<int>{0, 0, 1, 1, 1}), (std::vector<int>{0}),
(std::vector<int>{0, 1, 2, 2, 2}), (std::vector<int>{1, 0}));
Expand Down

0 comments on commit add2bfa

Please sign in to comment.