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