Ignore:
Timestamp:
May 19, 2017, 2:29:09 PM (8 years ago)
Author:
Frederik Heber <frederik.heber@…>
Branches:
ForceAnnealing_goodresults, ForceAnnealing_tocheck
Children:
9190e6
Parents:
53ef16e
Message:

Moved AlwaysTruePredicate from BoostGraphCreatorUnitTest into BreadthFirstSearchGatherer.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Graph/unittests/BoostGraphCreatorUnitTest.cpp

    r53ef16e rd07be9  
    4545#include "Atom/atom.hpp"
    4646#include "Graph/BoostGraphCreator.hpp"
     47#include "Graph/BreadthFirstSearchGatherer.hpp"
    4748#include "molecule.hpp"
    4849#include "Element/periodentafel.hpp"
     
    149150};
    150151
    151 static bool AlwaysTruePredicate(const bond &_bond) { return true; }
    152 
    153152/** Tests whether createFromMolecule() works.
    154153 */
    155154void BoostGraphCreatorTest::createFromMoleculeTest()
    156155{
    157   BGCreator->createFromMolecule(*TestMolecule, AlwaysTruePredicate);
     156  BGCreator->createFromMolecule(*TestMolecule, BreadthFirstSearchGatherer::AlwaysTruePredicate);
    158157
    159158  CPPUNIT_ASSERT_EQUAL ((size_t)6, BGCreator->getNumVertices());
     
    167166  std::vector<atom *> atoms;
    168167  std::copy(TestMolecule->begin(), TestMolecule->end(), std::back_inserter(atoms));
    169   BGCreator->createFromAtoms(atoms, AlwaysTruePredicate);
     168  BGCreator->createFromAtoms(atoms, BreadthFirstSearchGatherer::AlwaysTruePredicate);
    170169
    171170  CPPUNIT_ASSERT_EQUAL ((size_t)6, BGCreator->getNumVertices());
Note: See TracChangeset for help on using the changeset viewer.