]> git.localhorst.tv Git - blank.git/blobdiff - tst/rand/StabilityTest.hpp
sped up chunk generation a little
[blank.git] / tst / rand / StabilityTest.hpp
diff --git a/tst/rand/StabilityTest.hpp b/tst/rand/StabilityTest.hpp
new file mode 100644 (file)
index 0000000..a4ea86e
--- /dev/null
@@ -0,0 +1,42 @@
+#ifndef BLANK_TEST_RAND_STABILITYTEST_HPP
+#define BLANK_TEST_RAND_STABILITYTEST_HPP
+
+#include <glm/glm.hpp>
+#include <cppunit/extensions/HelperMacros.h>
+
+
+
+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