19 using designlab::DoubleIntRange;
21 TEST_CASE(
"When pram is [3,3]")
23 std::vector<std::tuple<int, int>> expected = {
24 {0, 0}, {0, 1}, {0, 2}, {1, 0}, {1, 1}, {1, 2}, {2, 0}, {2, 1}, {2, 2},
27 std::vector<std::tuple<int, int>> actual;
29 for (
const auto [i, j] : DoubleIntRange{ 3, 3 })
31 actual.push_back(std::make_tuple(i, j));
34 CHECK_EQ(expected, actual);
37 TEST_CASE(
"When pram is [2,3]")
39 std::vector<std::tuple<int, int>> expected = {
40 {0, 0}, {0, 1}, {0, 2}, {1, 0}, {1, 1}, {1, 2},
43 std::vector<std::tuple<int, int>> actual;
45 for (
const auto [i, j] : DoubleIntRange{ 2, 3 })
47 actual.push_back(std::make_tuple(i, j));
50 CHECK_EQ(expected, actual);
53 TEST_CASE(
"When pram is [3,2]")
55 std::vector<std::tuple<int, int>> expected = {
56 {0, 0}, {0, 1}, {1, 0}, {1, 1}, {2, 0}, {2, 1},
59 std::vector<std::tuple<int, int>> actual;
61 for (
const auto [i, j] : DoubleIntRange{ 3, 2 })
63 actual.push_back(std::make_tuple(i, j));
66 CHECK_EQ(expected, actual);