8 #include "gtest/gtest.h"
12 using vec = std::vector<size_t>;
14 TEST(CombinationsGeneratorTester, n3k1) {
17 EXPECT_EQ (
vec{0},
gen.get());
18 EXPECT_EQ (
false,
gen.bump());
19 EXPECT_EQ (
vec{1},
gen.get());
20 EXPECT_EQ (
false,
gen.bump());
21 EXPECT_EQ (
vec{2},
gen.get());
22 EXPECT_EQ (
true,
gen.bump());
25 TEST(CombinationsGeneratorTester, n3k2) {
30 EXPECT_EQ (
v0,
gen.get());
31 EXPECT_EQ (
false,
gen.bump());
32 EXPECT_EQ (v1,
gen.get());
33 EXPECT_EQ (
false,
gen.bump());
34 EXPECT_EQ (
v2,
gen.get());
35 EXPECT_EQ (
true,
gen.bump());
38 TEST(CombinationsGeneratorTester, n3k3) {
41 EXPECT_EQ (
v0,
gen.get());
42 EXPECT_EQ (
true,
gen.bump());
45 TEST(CombinationsGeneratorTester, n3k0) {
48 EXPECT_EQ (
v0,
gen.get());
49 EXPECT_EQ (
true,
gen.bump());
52 TEST(CombinationsGeneratorTester, n3k4) {
55 EXPECT_EQ (
v0,
gen.get());
56 EXPECT_EQ (
true,
gen.bump());