Revision: | 174 |
Committed: | Thu Oct 28 15:15:44 2004 UTC (20 years, 6 months ago) by tim |
File size: | 436 byte(s) |
Log Message: | adding next_combination test case |
# | Content |
---|---|
1 | #include "utils/NextCombinationTestCase.hpp" |
2 | #include <iostream> |
3 | #include <algorithm> |
4 | #include "utils/next_combination.hpp" |
5 | // Registers the fixture into the 'registry' |
6 | CPPUNIT_TEST_SUITE_REGISTRATION( NextCombinationTestCase); |
7 | |
8 | void NextCombinationTestCase::testNextCombination() { |
9 | std::vector<double> dv; |
10 | std::vector<std::vector<double>::iterator> ic; |
11 | |
12 | while (next_combination(ic, dv.begin(), dv.end()) { |
13 | |
14 | |
15 | } |
16 | } |