1 #ifndef BLANK_TEST_GEOMETRY_LOCATIONTEST_HPP_
2 #define BLANK_TEST_GEOMETRY_LOCATIONTEST_HPP_
4 #include "geometry/Location.hpp"
5 #include "graphics/glm.hpp"
8 #include <cppunit/extensions/HelperMacros.h>
15 : public CppUnit::TestFixture {
17 CPPUNIT_TEST_SUITE(LocationTest);
19 CPPUNIT_TEST(testSanitize);
20 CPPUNIT_TEST(testAbsolute);
21 CPPUNIT_TEST(testRelative);
22 CPPUNIT_TEST(testDifference);
24 CPPUNIT_TEST_SUITE_END();
33 void testDifference();
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);