ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE-2.0/test/brains/SnapshotTestCase.cpp
Revision: 1629
Committed: Thu Oct 21 21:30:34 2004 UTC (19 years, 8 months ago) by tim
File size: 444 byte(s)
Log Message:
adding test case for Snapshot and snapshotManager.

File Contents

# Content
1 #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 }

Properties

Name Value
svn:executable *