13 #ifndef dm_combination_test_suite_hpp
14 #define dm_combination_test_suite_hpp
52 std::string s =
"1234";
53 std::size_t comb_size = 3;
56 TEST_ASSERT(s==
"1243");
58 TEST_ASSERT(s==
"1342");
60 TEST_ASSERT(s==
"2341");
62 TEST_ASSERT(s==
"1234");
68 std::vector<int> s(4);
69 std::size_t comb_size = 3;
72 for (i=0; i<s.size(); ++i)
73 s[i]=static_cast<int>(i)+1;
76 TEST_ASSERT((s[0]==1) && (s[1]==2) && (s[2]==4) && (s[3]==3));
78 TEST_ASSERT((s[0]==1) && (s[1]==3) && (s[2]==4) && (s[3]==2));
80 TEST_ASSERT((s[0]==2) && (s[1]==3) && (s[2]==4) && (s[3]==1));
82 TEST_ASSERT((s[0]==1) && (s[1]==2) && (s[2]==3) && (s[3]==4));
~combination_test_suite()
Definition: combination_test_suite.hpp:45
Definition: combination_test_suite.hpp:30
void string_test()
Definition: combination_test_suite.hpp:50
void AddTests()
Definition: combination_test_suite.hpp:33
void vector_test()
Definition: combination_test_suite.hpp:65
bool next_combination(const it__ itb, it__ itk, const it__ ite, comp__ comp)
Definition: combination.hpp:35
combination_test_suite()
Definition: combination_test_suite.hpp:40