| Revision: | 175 |
| Committed: | Thu Oct 28 15:42:17 2004 UTC (21 years ago) by tim |
| Original Path: | trunk/test/utils/NextCombinationTestCase.cpp |
| File size: | 400 byte(s) |
| Log Message: | next_combination in progress |
| # | User | Rev | Content |
|---|---|---|---|
| 1 | tim | 174 | #include "utils/NextCombinationTestCase.hpp" |
| 2 | #include <iostream> | ||
| 3 | #include <algorithm> | ||
| 4 | tim | 175 | |
| 5 | tim | 174 | // Registers the fixture into the 'registry' |
| 6 | CPPUNIT_TEST_SUITE_REGISTRATION( NextCombinationTestCase); | ||
| 7 | void NextCombinationTestCase::testNextCombination() { | ||
| 8 | std::vector<double> dv; | ||
| 9 | std::vector<std::vector<double>::iterator> ic; | ||
| 10 | |||
| 11 | tim | 175 | while (next_combination(ic, dv.begin(), dv.end())) { |
| 12 | tim | 174 | |
| 13 | |||
| 14 | } | ||
| 15 | tim | 175 | } |