source:
src/Descriptors/unittests/AtomDescriptorUnitTest.hpp@
2f3905
Last change on this file since 2f3905 was 61c364, checked in by , 13 years ago | |
---|---|
|
|
File size: 1.1 KB |
Rev | Line | |
---|---|---|
[7a1ce5] | 1 | /* |
[d766b5] | 2 | * AtomDescriptorUnitTest.hpp |
[7a1ce5] | 3 | * |
4 | * Created on: Feb 9, 2010 | |
5 | * Author: crueger | |
6 | */ | |
7 | ||
[d766b5] | 8 | #ifndef ATOMDESCRIPTORUNITTEST_HPP_ |
9 | #define ATOMDESCRIPTORUNITTEST_HPP_ | |
[7a1ce5] | 10 | |
[56f73b] | 11 | // include config.h |
12 | #ifdef HAVE_CONFIG_H | |
13 | #include <config.h> | |
14 | #endif | |
15 | ||
16 | ||
[7a1ce5] | 17 | #include <cppunit/extensions/HelperMacros.h> |
18 | ||
[ead4e6] | 19 | #include "types.hpp" |
[57adc7] | 20 | |
[88b400] | 21 | // we prefer enum over define |
22 | enum { ATOM_COUNT = 10 }; | |
[7a1ce5] | 23 | |
24 | class atom; | |
25 | ||
[57adc7] | 26 | class AtomDescriptorTest : public CppUnit::TestFixture |
[7a1ce5] | 27 | { |
[57adc7] | 28 | CPPUNIT_TEST_SUITE( AtomDescriptorTest ); |
[7a1ce5] | 29 | CPPUNIT_TEST ( AtomBaseSetsTest ); |
30 | CPPUNIT_TEST ( AtomIdTest ); | |
[b49568] | 31 | CPPUNIT_TEST ( AtomOfMoleculeTest ); |
[61c364] | 32 | CPPUNIT_TEST ( AtomOrderTest ); |
[bbab87] | 33 | CPPUNIT_TEST ( AtomsWithinDistanceOfTest ); |
[61c364] | 34 | // CPPUNIT_TEST ( AtomsShapeTest ); |
[7a1ce5] | 35 | CPPUNIT_TEST ( AtomCalcTest ); |
36 | CPPUNIT_TEST_SUITE_END(); | |
37 | ||
38 | public: | |
39 | void setUp(); | |
40 | void tearDown(); | |
41 | ||
42 | void AtomBaseSetsTest(); | |
43 | void AtomIdTest(); | |
[61c364] | 44 | void AtomOfMoleculeTest(); |
45 | void AtomOrderTest(); | |
[bbab87] | 46 | void AtomsWithinDistanceOfTest(); |
[61c364] | 47 | // void AtomsShapeTest(); |
[7a1ce5] | 48 | void AtomCalcTest(); |
49 | ||
50 | private: | |
51 | atom *atoms [ATOM_COUNT]; | |
[57adc7] | 52 | atomId_t atomIds [ATOM_COUNT]; |
[7a1ce5] | 53 | }; |
54 | ||
[d766b5] | 55 | #endif /* ATOMDESCRIPTORUNITTEST_HPP_ */ |
Note:
See TracBrowser
for help on using the repository browser.