- Timestamp:
- Dec 28, 2011, 3:30:06 PM (13 years ago)
- Branches:
- Action_Thermostats, Add_AtomRandomPerturbation, Add_FitFragmentPartialChargesAction, Add_RotateAroundBondAction, Add_SelectAtomByNameAction, Added_ParseSaveFragmentResults, AddingActions_SaveParseParticleParameters, Adding_Graph_to_ChangeBondActions, Adding_MD_integration_tests, Adding_ParticleName_to_Atom, Adding_StructOpt_integration_tests, AtomFragments, Automaking_mpqc_open, AutomationFragmentation_failures, Candidate_v1.5.4, Candidate_v1.6.0, Candidate_v1.6.1, ChangeBugEmailaddress, ChangingTestPorts, ChemicalSpaceEvaluator, CombiningParticlePotentialParsing, Combining_Subpackages, Debian_Package_split, Debian_package_split_molecuildergui_only, Disabling_MemDebug, Docu_Python_wait, EmpiricalPotential_contain_HomologyGraph, EmpiricalPotential_contain_HomologyGraph_documentation, Enable_parallel_make_install, Enhance_userguide, Enhanced_StructuralOptimization, Enhanced_StructuralOptimization_continued, Example_ManyWaysToTranslateAtom, Exclude_Hydrogens_annealWithBondGraph, FitPartialCharges_GlobalError, Fix_BoundInBox_CenterInBox_MoleculeActions, Fix_ChargeSampling_PBC, Fix_ChronosMutex, Fix_FitPartialCharges, Fix_FitPotential_needs_atomicnumbers, Fix_ForceAnnealing, Fix_IndependentFragmentGrids, Fix_ParseParticles, Fix_ParseParticles_split_forward_backward_Actions, Fix_PopActions, Fix_QtFragmentList_sorted_selection, Fix_Restrictedkeyset_FragmentMolecule, Fix_StatusMsg, Fix_StepWorldTime_single_argument, Fix_Verbose_Codepatterns, Fix_fitting_potentials, Fixes, ForceAnnealing_goodresults, ForceAnnealing_oldresults, ForceAnnealing_tocheck, ForceAnnealing_with_BondGraph, ForceAnnealing_with_BondGraph_continued, ForceAnnealing_with_BondGraph_continued_betteresults, ForceAnnealing_with_BondGraph_contraction-expansion, FragmentAction_writes_AtomFragments, FragmentMolecule_checks_bonddegrees, GeometryObjects, Gui_Fixes, Gui_displays_atomic_force_velocity, ImplicitCharges, IndependentFragmentGrids, IndependentFragmentGrids_IndividualZeroInstances, IndependentFragmentGrids_IntegrationTest, IndependentFragmentGrids_Sole_NN_Calculation, JobMarket_RobustOnKillsSegFaults, JobMarket_StableWorkerPool, JobMarket_unresolvable_hostname_fix, MoreRobust_FragmentAutomation, ODR_violation_mpqc_open, PartialCharges_OrthogonalSummation, PdbParser_setsAtomName, PythonUI_with_named_parameters, QtGui_reactivate_TimeChanged_changes, Recreated_GuiChecks, Rewrite_FitPartialCharges, RotateToPrincipalAxisSystem_UndoRedo, SaturateAtoms_findBestMatching, SaturateAtoms_singleDegree, StoppableMakroAction, Subpackage_CodePatterns, Subpackage_JobMarket, Subpackage_LinearAlgebra, Subpackage_levmar, Subpackage_mpqc_open, Subpackage_vmg, Switchable_LogView, ThirdParty_MPQC_rebuilt_buildsystem, TrajectoryDependenant_MaxOrder, TremoloParser_IncreasedPrecision, TremoloParser_MultipleTimesteps, TremoloParser_setsAtomName, Ubuntu_1604_changes, stable
- Children:
- 6f0841
- Parents:
- aa6c75
- git-author:
- Frederik Heber <heber@…> (11/15/11 14:15:25)
- git-committer:
- Frederik Heber <heber@…> (12/28/11 15:30:06)
- Location:
- src
- Files:
-
- 2 added
- 3 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
src/LinkedCell/unittests/linkedcellUnitTest.cpp
raa6c75 r91f592 38 38 #include "World.hpp" 39 39 40 #include " LinkedCellUnitTest.hpp"40 #include "linkedcellUnitTest.hpp" 41 41 42 42 #ifdef HAVE_TESTRUNNER … … 47 47 48 48 // Registers the fixture into the 'registry' 49 CPPUNIT_TEST_SUITE_REGISTRATION( LinkedCellTest );50 51 52 void LinkedCellTest::setUp()49 CPPUNIT_TEST_SUITE_REGISTRATION( linkedcelltest ); 50 51 52 void linkedcelltest::setUp() 53 53 { 54 54 // failing asserts should be thrown … … 84 84 85 85 86 void LinkedCellTest::tearDown()86 void linkedcelltest::tearDown() 87 87 { 88 88 delete(LC); … … 93 93 /** UnitTest for LinkedCell::CheckBounds(). 94 94 */ 95 void LinkedCellTest::CheckBoundsTest()95 void linkedcelltest::CheckBoundsTest() 96 96 { 97 97 // check for within bounds … … 124 124 * Note that CheckBounds() is used and has to be tested already. 125 125 */ 126 void LinkedCellTest::GetCurrentCellTest()126 void linkedcelltest::GetCurrentCellTest() 127 127 { 128 128 // within bounds … … 145 145 /** UnitTest for LinkedCell::GetRelativeToCurrentCell(). 146 146 */ 147 void LinkedCellTest::GetRelativeToCurrentCellTest()147 void linkedcelltest::GetRelativeToCurrentCellTest() 148 148 { 149 149 int offset[3]; … … 202 202 /** UnitTest for LinkedCell::SetIndexToNode(). 203 203 */ 204 void LinkedCellTest::SetIndexToNodeTest()204 void linkedcelltest::SetIndexToNodeTest() 205 205 { 206 206 // check all atoms … … 227 227 /** UnitTest for LinkedCell::SetIndexToVector(). 228 228 */ 229 void LinkedCellTest::SetIndexToVectorTest()229 void linkedcelltest::SetIndexToVectorTest() 230 230 { 231 231 Vector tester; … … 263 263 /** UnitTest for LinkedCell::GetNeighbourBounds(). 264 264 */ 265 void LinkedCellTest::GetNeighbourBoundsTest()265 void linkedcelltest::GetNeighbourBoundsTest() 266 266 { 267 267 Vector tester; … … 280 280 /** UnitTest for LinkedCell::GetallNeighbours(). 281 281 */ 282 void LinkedCellTest::GetallNeighboursTest()282 void linkedcelltest::GetallNeighboursTest() 283 283 { 284 284 Vector tester; … … 341 341 /** UnitTest for LinkedCell::GetPointsInsideSphere(). 342 342 */ 343 void LinkedCellTest::GetPointsInsideSphereTest()343 void linkedcelltest::GetPointsInsideSphereTest() 344 344 { 345 345 Vector tester; -
src/LinkedCell/unittests/linkedcellUnitTest.hpp
raa6c75 r91f592 25 25 /********************************************** Test classes **************************************/ 26 26 27 class LinkedCellTest : public CppUnit::TestFixture27 class linkedcelltest : public CppUnit::TestFixture 28 28 { 29 CPPUNIT_TEST_SUITE( LinkedCellTest) ;29 CPPUNIT_TEST_SUITE( linkedcelltest) ; 30 30 CPPUNIT_TEST ( CheckBoundsTest ); 31 31 CPPUNIT_TEST ( GetCurrentCellTest ); -
src/Makefile.am
raa6c75 r91f592 15 15 include Graph/Makefile.am 16 16 include Helpers/Makefile.am 17 include LinkedCell/Makefile.am 17 18 include Parser/Makefile.am 18 19 include RandomNumbers/Makefile.am … … 115 116 Dynamics/VerletForceIntegration.hpp 116 117 117 LINKEDCELLSOURCE = \118 LinkedCell/linkedcell.cpp119 120 LINKEDCELLHEADER = \121 LinkedCell/linkedcell.hpp \122 LinkedCell/IPointCloud.hpp \123 LinkedCell/PointCloudAdaptor.hpp124 125 118 THERMOSTATSOURCE = \ 126 119 Thermostats/Berendsen.cpp \ … … 175 168 ${DESCRIPTORSOURCE} \ 176 169 ${DYNAMICSSOURCE} \ 177 ${LINKEDCELLSOURCE} \178 170 ${THERMOSTATSOURCE} \ 179 171 ${TESSELATIONSOURCE} \ … … 197 189 ${DESCRIPTORIMPLHEADER} \ 198 190 ${DYNAMICSHEADER} \ 199 ${LINKEDCELLHEADER} \200 191 ${THERMOSTATHEADER} \ 201 192 ${TESSELATIONHEADER} \ -
src/UIElements/Makefile.am
raa6c75 r91f592 267 267 libMolecuilderParser.la \ 268 268 libMolecuilderShapes.la \ 269 libMolecuilderLinkedCell.la \ 269 270 libMolecuilderHelpers.la \ 270 271 libMolecuilderElement.la \ -
src/unittests/Makefile.am
raa6c75 r91f592 12 12 include ../../src/Fragmentation/unittests/Makefile.am 13 13 include ../../src/Graph/unittests/Makefile.am 14 include ../../src/LinkedCell/unittests/Makefile.am 14 15 include ../../src/Parser/unittests/Makefile.am 15 16 include ../../src/RandomNumbers/unittests/Makefile.am … … 27 28 BoxUnitTest \ 28 29 FormulaUnittest \ 29 LinkedCellUnitTest \30 30 ListOfBondsUnitTest \ 31 31 WorldTimeUnitTest … … 64 64 ${FRAGMENTATIONTESTSSOURCES} \ 65 65 ${GRAPHTESTSSOURCES} \ 66 ${LINKEDCELLSOURCES} \ 66 67 ${LINEARALGEBRATESTSSOURCES} \ 67 68 ${PARSERTESTSSOURCES} \ … … 73 74 BoxUnitTest.cpp \ 74 75 FormulaUnitTest.cpp \ 75 LinkedCellUnitTest.cpp \76 76 ListOfBondsUnitTest.cpp \ 77 77 WorldTimeUnitTest.cpp … … 84 84 ${FRAGMENTATIONTESTSHEADERS} \ 85 85 ${GRAPHTESTSHEADERS} \ 86 ${LINKEDCELLHEADERS} \ 86 87 ${LINEARALGEBRATESTSHEADERS} \ 87 88 ${PARSERTESTSHEADERS} \ … … 93 94 BoxUnitTest.hpp \ 94 95 FormulaUnitTest.hpp \ 95 LinkedCellUnitTest.hpp \96 96 ListOfBondsUnitTest.hpp \ 97 97 WorldTimeUnitTest.hpp … … 112 112 FormulaUnittest_LDADD = $(ALLLIBS) 113 113 114 LinkedCellUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \115 LinkedCellUnitTest.cpp \116 LinkedCellUnitTest.hpp117 LinkedCellUnitTest_LDADD = $(ALLLIBS)118 119 114 ListOfBondsUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \ 120 115 ListOfBondsUnitTest.cpp \
Note:
See TracChangeset
for help on using the changeset viewer.