source: molecuilder/src/unittests/bondgraphunittest.hpp@ aa8542

Last change on this file since aa8542 was aa8542, checked in by Frederik Heber <heber@…>, 15 years ago

BUGFIX: BondGraphUnitTest was not working.

Changes:

  • atoms are now carbon, not hydrogen
  • added covalent and van-der-Waals radii to element creation
  • FIX: carbon now has Z = 2.
  • added test case for NULL BondTable (i.e. from covalent radii)

Signed-off-by: Frederik Heber <heber@…>

  • Property mode set to 100644
File size: 1.0 KB
Line 
1/*
2 * bondgraphunittest.hpp
3 *
4 * Created on: Oct 29, 2009
5 * Author: heber
6 */
7
8#ifndef BONDGRAPHUNITTEST_HPP_
9#define BONDGRAPHUNITTEST_HPP_
10
11#include <cppunit/extensions/HelperMacros.h>
12
13#include "bondgraph.hpp"
14
15class element;
16class molecule;
17class periodentafel;
18
19/********************************************** Test classes **************************************/
20
21class BondGraphTest : public CppUnit::TestFixture
22{
23 CPPUNIT_TEST_SUITE( BondGraphTest) ;
24 CPPUNIT_TEST ( LoadTableTest );
25 CPPUNIT_TEST ( ConstructGraphFromTableTest );
26 CPPUNIT_TEST ( ConstructGraphFromCovalentRadiiTest );
27 CPPUNIT_TEST_SUITE_END();
28
29public:
30 void setUp();
31 void tearDown();
32 void LoadTableTest();
33 void ConstructGraphFromTableTest();
34 void ConstructGraphFromCovalentRadiiTest();
35
36private:
37
38 molecule *TestMolecule;
39 element *hydrogen;
40 element *carbon;
41 periodentafel *tafel;
42
43 BondGraph *BG;
44 string *filename;
45 string *dummyname;
46};
47
48#endif /* BONDGRAPHUNITTEST_HPP_ */
Note: See TracBrowser for help on using the repository browser.