source: src/Actions/unittests/AtomsCalculationUnitTest.hpp@ 836972

Action_Thermostats Add_AtomRandomPerturbation Add_SelectAtomByNameAction Adding_Graph_to_ChangeBondActions Adding_MD_integration_tests Adding_StructOpt_integration_tests AutomationFragmentation_failures Candidate_v1.6.1 ChangeBugEmailaddress ChemicalSpaceEvaluator EmpiricalPotential_contain_HomologyGraph_documentation Enhance_userguide Enhanced_StructuralOptimization Enhanced_StructuralOptimization_continued Example_ManyWaysToTranslateAtom Exclude_Hydrogens_annealWithBondGraph Fix_Verbose_Codepatterns ForceAnnealing_oldresults ForceAnnealing_with_BondGraph ForceAnnealing_with_BondGraph_continued ForceAnnealing_with_BondGraph_continued_betteresults ForceAnnealing_with_BondGraph_contraction-expansion GeometryObjects Gui_displays_atomic_force_velocity IndependentFragmentGrids_IntegrationTest JobMarket_RobustOnKillsSegFaults JobMarket_StableWorkerPool PythonUI_with_named_parameters QtGui_reactivate_TimeChanged_changes Recreated_GuiChecks StoppableMakroAction TremoloParser_IncreasedPrecision TremoloParser_MultipleTimesteps
Last change on this file since 836972 was 56f73b, checked in by Frederik Heber <heber@…>, 14 years ago

Added config.h also to all header files, code check test ascertain this in the future.

  • as we want to use config.h to pass stuff such as MEMDEBUG, NDEBUG, LOG_OBSERVER, we have to make sure that it is present in each and every file.
  • split up CodeChecks/testsuite.at: each test has its own .at file.
  • Property mode set to 100644
File size: 822 bytes
RevLine 
[b54ac8]1/*
[3c8e8b]2 * AtomsCalculationUnitTest.hpp
[b54ac8]3 *
4 * Created on: Feb 19, 2010
5 * Author: crueger
6 */
7
[3c8e8b]8#ifndef ATOMSCALCULATIONUNITTEST_HPP_
9#define ATOMSCALCULATIONUNITTEST_HPP_
[b54ac8]10
[56f73b]11// include config.h
12#ifdef HAVE_CONFIG_H
13#include <config.h>
14#endif
15
16
[b54ac8]17#include <cppunit/extensions/HelperMacros.h>
18
[88b400]19// we prefer enum over define
20enum { ATOM_COUNT = 10 };
[b54ac8]21
[ead4e6]22#include "types.hpp"
23
[b54ac8]24class atom;
25
[3c8e8b]26class AtomsCalculationTest : public CppUnit::TestFixture
[b54ac8]27{
[3c8e8b]28 CPPUNIT_TEST_SUITE( AtomsCalculationTest );
[b54ac8]29 CPPUNIT_TEST ( testCalculateSimple );
30 CPPUNIT_TEST ( testCalculateExcluded );
31 CPPUNIT_TEST_SUITE_END();
32
33public:
34 void setUp();
35 void tearDown();
36
37 void testCalculateSimple();
38 void testCalculateExcluded();
39
40private:
41 atom *atoms [ATOM_COUNT];
[ead4e6]42 atomId_t atomIds [ATOM_COUNT];
[b54ac8]43};
44
[3c8e8b]45#endif /* ATOMSCALCULATIONUNITTEST_HPP_ */
Note: See TracBrowser for help on using the repository browser.