From a15c075c9bb81d2091ac7c146f1650f7c4983583 Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 27 Mar 2012 16:35:15 +0200 Subject: [PATCH] Extended cubic surface extractor test. --- tests/TestCubicSurfaceExtractor.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/TestCubicSurfaceExtractor.cpp b/tests/TestCubicSurfaceExtractor.cpp index 8a48c897..6435c78a 100644 --- a/tests/TestCubicSurfaceExtractor.cpp +++ b/tests/TestCubicSurfaceExtractor.cpp @@ -105,6 +105,8 @@ void TestCubicSurfaceExtractor::testExecute() const static uint32_t uMaterialToCheck = 3000; const static float fExpectedMaterial = 42.0f; const static float fNoMaterial = 1.0f; + const static uint32_t uIndexToCheck = 2000; + const static uint32_t uExpectedIndex = 1334; SurfaceMesh mesh; @@ -157,6 +159,7 @@ void TestCubicSurfaceExtractor::testExecute() QCOMPARE(mesh.getNoOfVertices(), uExpectedVertices); QCOMPARE(mesh.getNoOfIndices(), uExpectedIndices); QCOMPARE(mesh.getVertices()[uMaterialToCheck].getMaterial(), fExpectedMaterial); + QCOMPARE(mesh.getIndices()[uIndexToCheck], uExpectedIndex); } QTEST_MAIN(TestCubicSurfaceExtractor)