Candidate_v1.7.0
        stable
      
      
        
          | 
            Last change
 on this file since 87c1cc was             6bd7e0, checked in by Frederik Heber <heber@…>, 14 years ago           | 
        
        
          | 
             
Renamed old LinkedCell class to LinkedCell_deprecated. 
 
- this is preparatory for a smooth transition to the new implementation.
 - note that class LinkedCell and namespace LinkedCell bite each other so far.
  
           | 
        
        
          
            
              - 
Property                 mode
 set to                 
100644
               
             
           | 
        
        
          | 
            File size:
            1.4 KB
           | 
        
      
      
| Rev | Line |   | 
|---|
| [dcea0f] | 1 | /*
 | 
|---|
 | 2 |  * LinkedCellUnitTest.hpp
 | 
|---|
 | 3 |  *
 | 
|---|
 | 4 |  *  Created on: Apr 9, 2010
 | 
|---|
 | 5 |  *      Author: heber
 | 
|---|
 | 6 |  */
 | 
|---|
 | 7 | 
 | 
|---|
 | 8 | #ifndef LINKEDCELLUNITTEST_HPP_
 | 
|---|
 | 9 | #define LINKEDCELLUNITTEST_HPP_
 | 
|---|
 | 10 | 
 | 
|---|
| [56f73b] | 11 | // include config.h
 | 
|---|
 | 12 | #ifdef HAVE_CONFIG_H
 | 
|---|
 | 13 | #include <config.h>
 | 
|---|
 | 14 | #endif
 | 
|---|
 | 15 | 
 | 
|---|
 | 16 | 
 | 
|---|
| [dcea0f] | 17 | #include <cppunit/extensions/HelperMacros.h>
 | 
|---|
 | 18 | 
 | 
|---|
 | 19 | 
 | 
|---|
 | 20 | class element;
 | 
|---|
| [6bd7e0] | 21 | class LinkedCell_deprecated;
 | 
|---|
| [dcea0f] | 22 | class molecule;
 | 
|---|
 | 23 | class periodentafel;
 | 
|---|
 | 24 | 
 | 
|---|
 | 25 | /********************************************** Test classes **************************************/
 | 
|---|
 | 26 | 
 | 
|---|
| [91f592] | 27 | class linkedcelltest : public CppUnit::TestFixture
 | 
|---|
| [dcea0f] | 28 | {
 | 
|---|
| [91f592] | 29 |     CPPUNIT_TEST_SUITE( linkedcelltest) ;
 | 
|---|
| [4f9e47] | 30 |     CPPUNIT_TEST ( CheckBoundsTest );
 | 
|---|
| [dcea0f] | 31 |     CPPUNIT_TEST ( GetCurrentCellTest );
 | 
|---|
 | 32 |     CPPUNIT_TEST ( GetRelativeToCurrentCellTest );
 | 
|---|
 | 33 |     CPPUNIT_TEST ( SetIndexToNodeTest );
 | 
|---|
 | 34 |     CPPUNIT_TEST ( SetIndexToVectorTest );
 | 
|---|
 | 35 |     CPPUNIT_TEST ( GetNeighbourBoundsTest );
 | 
|---|
| [4f9e47] | 36 |     CPPUNIT_TEST ( GetallNeighboursTest );
 | 
|---|
| [dcea0f] | 37 |     CPPUNIT_TEST ( GetPointsInsideSphereTest );
 | 
|---|
 | 38 |     CPPUNIT_TEST_SUITE_END();
 | 
|---|
 | 39 | 
 | 
|---|
 | 40 | public:
 | 
|---|
 | 41 |       void setUp();
 | 
|---|
 | 42 |       void tearDown();
 | 
|---|
 | 43 | 
 | 
|---|
 | 44 |       void GetCurrentCellTest();
 | 
|---|
 | 45 |       void GetRelativeToCurrentCellTest();
 | 
|---|
 | 46 |       void SetIndexToNodeTest();
 | 
|---|
 | 47 |       void SetIndexToVectorTest();
 | 
|---|
 | 48 |       void CheckBoundsTest();
 | 
|---|
 | 49 |       void GetNeighbourBoundsTest();
 | 
|---|
 | 50 |       void GetallNeighboursTest();
 | 
|---|
 | 51 |       void GetPointsInsideSphereTest();
 | 
|---|
 | 52 | 
 | 
|---|
 | 53 | private:
 | 
|---|
 | 54 | 
 | 
|---|
 | 55 |       molecule *TestMolecule;
 | 
|---|
| [4eb4fe] | 56 |       const element *hydrogen;
 | 
|---|
| [6bd7e0] | 57 |       LinkedCell_deprecated *LC;
 | 
|---|
| [dcea0f] | 58 | };
 | 
|---|
 | 59 | 
 | 
|---|
 | 60 | 
 | 
|---|
 | 61 | #endif /* LINKEDCELLUNITTEST_HPP_ */
 | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.