]> git.localhorst.tv Git - blank.git/blob - tst/geometry/LocationTest.hpp
some linting
[blank.git] / tst / geometry / LocationTest.hpp
1 #ifndef BLANK_TEST_GEOMETRY_LOCATIONTEST_HPP_
2 #define BLANK_TEST_GEOMETRY_LOCATIONTEST_HPP_
3
4 #include "geometry/Location.hpp"
5 #include "graphics/glm.hpp"
6
7 #include <string>
8 #include <cppunit/extensions/HelperMacros.h>
9
10
11 namespace blank {
12 namespace test {
13
14 class LocationTest
15 : public CppUnit::TestFixture {
16
17 CPPUNIT_TEST_SUITE(LocationTest);
18
19 CPPUNIT_TEST(testSanitize);
20 CPPUNIT_TEST(testAbsolute);
21 CPPUNIT_TEST(testRelative);
22 CPPUNIT_TEST(testDifference);
23
24 CPPUNIT_TEST_SUITE_END();
25
26 public:
27         void setUp();
28         void tearDown();
29
30         void testSanitize();
31         void testAbsolute();
32         void testRelative();
33         void testDifference();
34
35 private:
36         static void AssertEqual(
37                 const std::string &msg,
38                 const glm::ivec3 &expected,
39                 const glm::ivec3 &actual);
40         static void AssertEqual(
41                 const std::string &msg,
42                 const glm::vec3 &expected,
43                 const glm::vec3 &actual);
44         static void AssertEqual(
45                 const std::string &msg,
46                 const RoughLocation &expected,
47                 const RoughLocation &actual);
48         static void AssertEqual(
49                 const std::string &msg,
50                 const ExactLocation &expected,
51                 const ExactLocation &actual);
52
53 };
54
55 }
56 }
57
58 #endif