| Revision: | 136 |
| Committed: | Thu Oct 21 21:30:34 2004 UTC (21 years ago) by tim |
| File size: | 444 byte(s) |
| Log Message: | adding test case for Snapshot and snapshotManager. |
| # | User | Rev | Content |
|---|---|---|---|
| 1 | tim | 136 | #include "brains/SnapshotTestCase.hpp" |
| 2 | // Registers the fixture into the 'registry' | ||
| 3 | CPPUNIT_TEST_SUITE_REGISTRATION( SnapshotTestCase ); | ||
| 4 | |||
| 5 | void SnapshotTestCase::setUp() { | ||
| 6 | } | ||
| 7 | |||
| 8 | void SnapshotTestCase::tearDown() { | ||
| 9 | } | ||
| 10 | void SnapshotTestCase::testConstructors(){ | ||
| 11 | Snapshot s; | ||
| 12 | |||
| 13 | s.pos.push_back(Vector3d(0, 1, 2)); | ||
| 14 | s.zAngle.push_back(1.0); | ||
| 15 | |||
| 16 | double *p = Snapshot::getArrayPointer(s.zAngle); | ||
| 17 | |||
| 18 | p = Snapshot::getArrayPointer(s.pos); | ||
| 19 | } |
| Name | Value |
|---|---|
| svn:executable | * |