Changeset 060fc3 for src/Graph/unittests
- Timestamp:
- May 19, 2017, 9:27:11 AM (8 years ago)
- Branches:
- ForceAnnealing_goodresults, ForceAnnealing_tocheck
- Children:
- adbeca
- Parents:
- 6370f9
- Location:
- src/Graph/unittests
- Files:
-
- 2 edited
-
BreadthFirstSearchGathererUnitTest.cpp (modified) (1 diff)
-
BreadthFirstSearchGathererUnitTest.hpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Graph/unittests/BreadthFirstSearchGathererUnitTest.cpp
r6370f9 r060fc3 105 105 CPPUNIT_ASSERT_EQUAL (compareids, atomids); 106 106 }; 107 108 /** Tests whether operator() with limited distance works. 109 */ 110 void BreadthFirstSearchGathererTest::limitedDistanceTest() 111 { 112 // create linear test graph 113 prepareLinearGraph(); 114 115 // call operator 116 BreadthFirstSearchGatherer gatherer(*BGCreator); 117 std::vector<atomId_t> atomids = gatherer(0, 3); 118 119 // create comparator set 120 std::vector<atomId_t> compareids; 121 compareids += 0,1,2,3; 122 CPPUNIT_ASSERT_EQUAL ((size_t)4, atomids.size()); 123 CPPUNIT_ASSERT_EQUAL (compareids, atomids); 124 }; -
src/Graph/unittests/BreadthFirstSearchGathererUnitTest.hpp
r6370f9 r060fc3 25 25 CPPUNIT_TEST_SUITE( BreadthFirstSearchGathererTest) ; 26 26 CPPUNIT_TEST ( operatorTest ); 27 CPPUNIT_TEST ( limitedDistanceTest ); 27 28 CPPUNIT_TEST_SUITE_END(); 28 29 … … 31 32 void tearDown(); 32 33 void operatorTest(); 34 void limitedDistanceTest(); 33 35 34 36 private:
Note:
See TracChangeset
for help on using the changeset viewer.
