|
Last change
on this file since 341850 was 341850, checked in by Frederik Heber <heber@…>, 16 years ago |
|
Added initial analysis_bonds.cpp and unit test for Analysis of bonds.
- analysis_bonds.cpp shall contain bond analysis tools, such as mean bond length, bond numbers, ...
- unit test for it is in place, copied from bondgraphunittest.cpp, as we will need a bond graph anyway.
- Makefile.am has nor ANALYSISSOURCE and ...HEADER definitions and above is added.
- unittests/Makefile.am has unit test incorporated.
- make check runs fine.
|
-
Property mode
set to
100644
|
|
File size:
834 bytes
|
| Line | |
|---|
| 1 | /*
|
|---|
| 2 | * analysisbondsunittest.hpp
|
|---|
| 3 | *
|
|---|
| 4 | * Created on: Nov 7, 2009
|
|---|
| 5 | * Author: heber
|
|---|
| 6 | */
|
|---|
| 7 |
|
|---|
| 8 | #ifndef ANALYSISBONDSUNITTEST_HPP_
|
|---|
| 9 | #define ANALYSISBONDSUNITTEST_HPP_
|
|---|
| 10 |
|
|---|
| 11 | #include <cppunit/extensions/HelperMacros.h>
|
|---|
| 12 |
|
|---|
| 13 | #include "bondgraph.hpp"
|
|---|
| 14 |
|
|---|
| 15 | class element;
|
|---|
| 16 | class molecule;
|
|---|
| 17 | class periodentafel;
|
|---|
| 18 |
|
|---|
| 19 | /********************************************** Test classes **************************************/
|
|---|
| 20 |
|
|---|
| 21 | class AnalysisBondsTest : public CppUnit::TestFixture
|
|---|
| 22 | {
|
|---|
| 23 | CPPUNIT_TEST_SUITE( AnalysisBondsTest) ;
|
|---|
| 24 | CPPUNIT_TEST ( BondsTest );
|
|---|
| 25 | CPPUNIT_TEST_SUITE_END();
|
|---|
| 26 |
|
|---|
| 27 | public:
|
|---|
| 28 | void setUp();
|
|---|
| 29 | void tearDown();
|
|---|
| 30 | void BondsTest();
|
|---|
| 31 |
|
|---|
| 32 | private:
|
|---|
| 33 |
|
|---|
| 34 | molecule *TestMolecule;
|
|---|
| 35 | element *hydrogen;
|
|---|
| 36 | element *carbon;
|
|---|
| 37 | periodentafel *tafel;
|
|---|
| 38 |
|
|---|
| 39 | BondGraph *BG;
|
|---|
| 40 | string *filename;
|
|---|
| 41 | };
|
|---|
| 42 |
|
|---|
| 43 | #endif /* ANALYSISBONDSUNITTEST_HPP_ */
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.