|
Last change
on this file since 7bfc19 was 7bfc19, checked in by Tillmann Crueger <crueger@…>, 16 years ago |
|
Made the world solely responsible for creating and destroying atoms.
|
-
Property mode
set to
100644
|
|
File size:
691 bytes
|
| Line | |
|---|
| 1 | /*
|
|---|
| 2 | * DescriptorUnittest.hpp
|
|---|
| 3 | *
|
|---|
| 4 | * Created on: Feb 9, 2010
|
|---|
| 5 | * Author: crueger
|
|---|
| 6 | */
|
|---|
| 7 |
|
|---|
| 8 | #ifndef DESCRIPTORUNITTEST_HPP_
|
|---|
| 9 | #define DESCRIPTORUNITTEST_HPP_
|
|---|
| 10 |
|
|---|
| 11 | #include <cppunit/extensions/HelperMacros.h>
|
|---|
| 12 |
|
|---|
| 13 | #define ATOM_COUNT (10)
|
|---|
| 14 |
|
|---|
| 15 | class atom;
|
|---|
| 16 |
|
|---|
| 17 | class DescriptorUnittest : public CppUnit::TestFixture
|
|---|
| 18 | {
|
|---|
| 19 | CPPUNIT_TEST_SUITE( DescriptorUnittest );
|
|---|
| 20 | CPPUNIT_TEST ( AtomBaseSetsTest );
|
|---|
| 21 | CPPUNIT_TEST ( AtomIdTest );
|
|---|
| 22 | CPPUNIT_TEST ( AtomCalcTest );
|
|---|
| 23 | CPPUNIT_TEST_SUITE_END();
|
|---|
| 24 |
|
|---|
| 25 | public:
|
|---|
| 26 | void setUp();
|
|---|
| 27 | void tearDown();
|
|---|
| 28 |
|
|---|
| 29 | void AtomBaseSetsTest();
|
|---|
| 30 | void AtomIdTest();
|
|---|
| 31 | void AtomCalcTest();
|
|---|
| 32 |
|
|---|
| 33 | private:
|
|---|
| 34 | atom *atoms [ATOM_COUNT];
|
|---|
| 35 | int atomIds [ATOM_COUNT];
|
|---|
| 36 | };
|
|---|
| 37 |
|
|---|
| 38 | #endif /* DESCRIPTORUNITTEST_HPP_ */
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.