Changeset d07be9 for src/Graph/unittests/BoostGraphCreatorUnitTest.cpp
- Timestamp:
- May 19, 2017, 2:29:09 PM (8 years ago)
- Branches:
- ForceAnnealing_goodresults, ForceAnnealing_tocheck
- Children:
- 9190e6
- Parents:
- 53ef16e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Graph/unittests/BoostGraphCreatorUnitTest.cpp
r53ef16e rd07be9 45 45 #include "Atom/atom.hpp" 46 46 #include "Graph/BoostGraphCreator.hpp" 47 #include "Graph/BreadthFirstSearchGatherer.hpp" 47 48 #include "molecule.hpp" 48 49 #include "Element/periodentafel.hpp" … … 149 150 }; 150 151 151 static bool AlwaysTruePredicate(const bond &_bond) { return true; }152 153 152 /** Tests whether createFromMolecule() works. 154 153 */ 155 154 void BoostGraphCreatorTest::createFromMoleculeTest() 156 155 { 157 BGCreator->createFromMolecule(*TestMolecule, AlwaysTruePredicate);156 BGCreator->createFromMolecule(*TestMolecule, BreadthFirstSearchGatherer::AlwaysTruePredicate); 158 157 159 158 CPPUNIT_ASSERT_EQUAL ((size_t)6, BGCreator->getNumVertices()); … … 167 166 std::vector<atom *> atoms; 168 167 std::copy(TestMolecule->begin(), TestMolecule->end(), std::back_inserter(atoms)); 169 BGCreator->createFromAtoms(atoms, AlwaysTruePredicate);168 BGCreator->createFromAtoms(atoms, BreadthFirstSearchGatherer::AlwaysTruePredicate); 170 169 171 170 CPPUNIT_ASSERT_EQUAL ((size_t)6, BGCreator->getNumVertices());
Note:
See TracChangeset
for help on using the changeset viewer.