]> git.localhorst.tv Git - blank.git/blobdiff - tst/rand/StabilityTest.hpp
test stability of worley noise generator
[blank.git] / tst / rand / StabilityTest.hpp
index a4ea86e4d32a66fe0e0af0a1ccb59cb0cf704963..acc6741fb13f2f8141f95ed294f9a81f34726fae 100644 (file)
@@ -1,7 +1,8 @@
 #ifndef BLANK_TEST_RAND_STABILITYTEST_HPP
 #define BLANK_TEST_RAND_STABILITYTEST_HPP
 
-#include <glm/glm.hpp>
+#include "graphics/glm.hpp"
+
 #include <cppunit/extensions/HelperMacros.h>
 
 
@@ -9,6 +10,7 @@
 namespace blank {
 
 class SimplexNoise;
+class WorleyNoise;
 
 namespace test {
 
@@ -19,6 +21,7 @@ CPPUNIT_TEST_SUITE(StabilityTest);
 
 CPPUNIT_TEST(testRNG);
 CPPUNIT_TEST(testSimplex);
+CPPUNIT_TEST(testWorley);
 
 CPPUNIT_TEST_SUITE_END();
 
@@ -28,12 +31,18 @@ public:
 
        void testRNG();
        void testSimplex();
+       void testWorley();
 
        static void Assert(
                const SimplexNoise &noise,
                const glm::vec3 &position,
                float expected);
 
+       static void Assert(
+               const WorleyNoise &noise,
+               const glm::vec3 &position,
+               float expected);
+
 };
 
 }