X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=tst%2Frand%2FStabilityTest.hpp;fp=tst%2Frand%2FStabilityTest.hpp;h=a4ea86e4d32a66fe0e0af0a1ccb59cb0cf704963;hb=9240fdf2e68ee014da0d0a89a7fb2f29ebf28e2d;hp=0000000000000000000000000000000000000000;hpb=825f479edf9867938b6789215ad7ae6303596cba;p=blank.git diff --git a/tst/rand/StabilityTest.hpp b/tst/rand/StabilityTest.hpp new file mode 100644 index 0000000..a4ea86e --- /dev/null +++ b/tst/rand/StabilityTest.hpp @@ -0,0 +1,42 @@ +#ifndef BLANK_TEST_RAND_STABILITYTEST_HPP +#define BLANK_TEST_RAND_STABILITYTEST_HPP + +#include +#include + + + +namespace blank { + +class SimplexNoise; + +namespace test { + +class StabilityTest +: public CppUnit::TestFixture { + +CPPUNIT_TEST_SUITE(StabilityTest); + +CPPUNIT_TEST(testRNG); +CPPUNIT_TEST(testSimplex); + +CPPUNIT_TEST_SUITE_END(); + +public: + void setUp(); + void tearDown(); + + void testRNG(); + void testSimplex(); + + static void Assert( + const SimplexNoise &noise, + const glm::vec3 &position, + float expected); + +}; + +} +} + +#endif