18 using designlab::DoubleIntRange;
20 TEST_CASE(
"When pram is [3,3]") {
21 std::vector<std::tuple<int, int>> expected = {
22 {0, 0}, {0, 1}, {0, 2}, {1, 0}, {1, 1}, {1, 2}, {2, 0}, {2, 1}, {2, 2},
25 std::vector<std::tuple<int, int>> actual;
27 for (
const auto [i, j] : DoubleIntRange{3, 3}) {
28 actual.push_back(std::make_tuple(i, j));
31 CHECK_EQ(expected, actual);
34 TEST_CASE(
"When pram is [2,3]") {
35 std::vector<std::tuple<int, int>> expected = {
36 {0, 0}, {0, 1}, {0, 2}, {1, 0}, {1, 1}, {1, 2},
39 std::vector<std::tuple<int, int>> actual;
41 for (
const auto [i, j] : DoubleIntRange{2, 3}) {
42 actual.push_back(std::make_tuple(i, j));
45 CHECK_EQ(expected, actual);
48 TEST_CASE(
"When pram is [3,2]") {
49 std::vector<std::tuple<int, int>> expected = {
50 {0, 0}, {0, 1}, {1, 0}, {1, 1}, {2, 0}, {2, 1},
53 std::vector<std::tuple<int, int>> actual;
55 for (
const auto [i, j] : DoubleIntRange{3, 2}) {
56 actual.push_back(std::make_tuple(i, j));
59 CHECK_EQ(expected, actual);