SegFault_gcc4.6
      
      
        
          | Last change
 on this file since 15c75f8 was             9b5a2c, checked in by Frederik Heber <heber@…>, 14 years ago | 
        
          | 
Moved analysis modules into subfolder Analysis along with its unit tests.
 new Makefiles are included in src/Makefile.am and src/unittests/Makefile.am.
 | 
        
          | 
              
Property                 mode
 set to                 100644 | 
        
          | File size:
            1.1 KB | 
      
      
| Rev | Line |  | 
|---|
| [dfe8ef] | 1 | /* | 
|---|
|  | 2 | * CountBondsUnitTest.hpp | 
|---|
|  | 3 | * | 
|---|
|  | 4 | *  Created on: Mar 30, 2010 | 
|---|
|  | 5 | *      Author: heber | 
|---|
|  | 6 | */ | 
|---|
|  | 7 |  | 
|---|
|  | 8 | #ifndef COUNTBONDSUNITTEST_HPP_ | 
|---|
|  | 9 | #define COUNTBONDSUNITTEST_HPP_ | 
|---|
|  | 10 |  | 
|---|
| [56f73b] | 11 | // include config.h | 
|---|
|  | 12 | #ifdef HAVE_CONFIG_H | 
|---|
|  | 13 | #include <config.h> | 
|---|
|  | 14 | #endif | 
|---|
|  | 15 |  | 
|---|
|  | 16 |  | 
|---|
| [dfe8ef] | 17 | #include <cppunit/extensions/HelperMacros.h> | 
|---|
|  | 18 |  | 
|---|
|  | 19 |  | 
|---|
|  | 20 | class BondGraph; | 
|---|
|  | 21 | class element; | 
|---|
|  | 22 | class molecule; | 
|---|
|  | 23 | class periodentafel; | 
|---|
|  | 24 |  | 
|---|
|  | 25 | /********************************************** Test classes **************************************/ | 
|---|
|  | 26 |  | 
|---|
|  | 27 | class CountBondsTest : public CppUnit::TestFixture | 
|---|
|  | 28 | { | 
|---|
|  | 29 | CPPUNIT_TEST_SUITE( CountBondsTest) ; | 
|---|
|  | 30 | CPPUNIT_TEST ( BondsOfTwoTest ); | 
|---|
|  | 31 | CPPUNIT_TEST ( BondsOfThreeTest ); | 
|---|
|  | 32 | CPPUNIT_TEST ( HydrogenBridgeBondsTest ); | 
|---|
|  | 33 | CPPUNIT_TEST_SUITE_END(); | 
|---|
|  | 34 |  | 
|---|
|  | 35 | public: | 
|---|
|  | 36 | void setUp(); | 
|---|
|  | 37 | void tearDown(); | 
|---|
|  | 38 | void BondsOfTwoTest(); | 
|---|
|  | 39 | void BondsOfThreeTest(); | 
|---|
|  | 40 | void HydrogenBridgeBondsTest(); | 
|---|
|  | 41 |  | 
|---|
|  | 42 | private: | 
|---|
|  | 43 |  | 
|---|
|  | 44 | MoleculeListClass *molecules; | 
|---|
|  | 45 | molecule *TestMolecule1; | 
|---|
|  | 46 | molecule *TestMolecule2; | 
|---|
| [4eb4fe] | 47 | const element *hydrogen; | 
|---|
|  | 48 | const element *oxygen; | 
|---|
| [dfe8ef] | 49 |  | 
|---|
|  | 50 | BondGraph *BG; | 
|---|
|  | 51 | string *filename; | 
|---|
|  | 52 | }; | 
|---|
|  | 53 |  | 
|---|
|  | 54 |  | 
|---|
|  | 55 | #endif /* COUNTBONDSUNITTEST_HPP_ */ | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.