Renamed test funtion.

This commit is contained in:
unknown 2012-01-24 16:12:04 +01:00
parent 0d492886db
commit ce11a7a0ae
3 changed files with 6 additions and 3 deletions

View File

@ -75,4 +75,4 @@ ADD_TEST(VolumeSubclassExtractSurfaceTest ${LATEST_TEST} testExtractSurface)
# ClassName tests
CREATE_TEST(TestVoxels.h TestVoxels.cpp TestVoxels)
ADD_TEST(VoxelsTraitsTest ${LATEST_TEST} testTraits)
ADD_TEST(VoxelsTraitsTest ${LATEST_TEST} testVoxelTypeLimits)

View File

@ -33,8 +33,11 @@ freely, subject to the following restrictions:
using namespace PolyVox;
void TestVoxels::testTraits()
void TestVoxels::testVoxelTypeLimits()
{
// It's worth testing these as they are not all explictily defined (e.g. Density8 is just a
// typedef of DensityI8), and in the future we might define then with bitwise magic or something.
QCOMPARE(VoxelTypeTraits<Density8>::MinDensity, Density8::DensityType(0));
QCOMPARE(VoxelTypeTraits<Density8>::MaxDensity, Density8::DensityType(255));

View File

@ -31,7 +31,7 @@ class TestVoxels: public QObject
Q_OBJECT
private slots:
void testTraits();
void testVoxelTypeLimits();
};
#endif