- try updated micro test

This commit is contained in:
SoftCoder
2014-02-07 14:15:55 -08:00
parent f2396dfa4d
commit 754bfcf2a0

View File

@@ -225,7 +225,7 @@ public:
// consistency // consistency
int unitTypeHeight = 0; int unitTypeHeight = 0;
cellHeight = 2.768517; cellHeight = 2.814814;
currField = fLand; currField = fLand;
tileSetAirHeight = 5.000000; tileSetAirHeight = 5.000000;
cellLandUnitHeight = -1; cellLandUnitHeight = -1;
@@ -236,8 +236,11 @@ public:
lastPos = Vec2i(40,41); lastPos = Vec2i(40,41);
pos = Vec2i(39,40); pos = Vec2i(39,40);
unitTypeHeight = 2; unitTypeHeight = 2;
for(int index = 0; index < 10000; ++index) {
Vec3f result = getCurrVector(unitTypeHeight); Vec3f result = getCurrVector(unitTypeHeight);
CPPUNIT_ASSERT_EQUAL( string("x [39.6485] y [3.76852] z [40.6485]"), result.getString() ); CPPUNIT_ASSERT_EQUAL( string("x [39.6485] y [3.81481] z [40.6485]"), result.getString() );
}
} }