]> git.localhorst.tv Git - blank.git/blob - tst/rand/StabilityTest.hpp
test 2 missing corner cases of sdl event strings
[blank.git] / tst / rand / StabilityTest.hpp
1 #ifndef BLANK_TEST_RAND_STABILITYTEST_HPP
2 #define BLANK_TEST_RAND_STABILITYTEST_HPP
3
4 #include "graphics/glm.hpp"
5
6 #include <cppunit/extensions/HelperMacros.h>
7
8
9
10 namespace blank {
11
12 class SimplexNoise;
13 class WorleyNoise;
14
15 namespace test {
16
17 class StabilityTest
18 : public CppUnit::TestFixture {
19
20 CPPUNIT_TEST_SUITE(StabilityTest);
21
22 CPPUNIT_TEST(testRNG);
23 CPPUNIT_TEST(testSimplex);
24 CPPUNIT_TEST(testWorley);
25
26 CPPUNIT_TEST_SUITE_END();
27
28 public:
29         void setUp();
30         void tearDown();
31
32         void testRNG();
33         void testSimplex();
34         void testWorley();
35
36         static void Assert(
37                 const SimplexNoise &noise,
38                 const glm::vec3 &position,
39                 float expected);
40
41         static void Assert(
42                 const WorleyNoise &noise,
43                 const glm::vec3 &position,
44                 float expected);
45
46 };
47
48 }
49 }
50
51 #endif