Renamed test funtion.
This commit is contained in:
parent
0d492886db
commit
ce11a7a0ae
@ -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)
|
||||
|
@ -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));
|
||||
|
||||
|
@ -31,7 +31,7 @@ class TestVoxels: public QObject
|
||||
Q_OBJECT
|
||||
|
||||
private slots:
|
||||
void testTraits();
|
||||
void testVoxelTypeLimits();
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user