X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=tst%2Frand%2FStabilityTest.hpp;h=acc6741fb13f2f8141f95ed294f9a81f34726fae;hb=29e8cfd4a72c248583ea9482864c016bb20f40f8;hp=a4ea86e4d32a66fe0e0af0a1ccb59cb0cf704963;hpb=9240fdf2e68ee014da0d0a89a7fb2f29ebf28e2d;p=blank.git diff --git a/tst/rand/StabilityTest.hpp b/tst/rand/StabilityTest.hpp index a4ea86e..acc6741 100644 --- a/tst/rand/StabilityTest.hpp +++ b/tst/rand/StabilityTest.hpp @@ -1,7 +1,8 @@ #ifndef BLANK_TEST_RAND_STABILITYTEST_HPP #define BLANK_TEST_RAND_STABILITYTEST_HPP -#include +#include "graphics/glm.hpp" + #include @@ -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); + }; }