1 #ifndef BLOBS_TEST_ASSETS_HPP_
2 #define BLOBS_TEST_ASSETS_HPP_
4 #include "graphics/glm.hpp"
15 const std::string &msg,
16 const glm::tvec2<T> &expected,
17 const glm::tvec2<T> &actual,
18 T epsilon = std::numeric_limits<T>::epsilon()
20 CPPUNIT_ASSERT_DOUBLES_EQUAL_MESSAGE(
21 msg + " (X component)",
22 expected.x, actual.x, epsilon
24 CPPUNIT_ASSERT_DOUBLES_EQUAL_MESSAGE(
25 msg + " (Y component)",
26 expected.y, actual.y, epsilon
32 const std::string &msg,
33 const glm::tvec3<T> &expected,
34 const glm::tvec3<T> &actual,
35 T epsilon = std::numeric_limits<T>::epsilon()
37 CPPUNIT_ASSERT_DOUBLES_EQUAL_MESSAGE(
38 msg + " (X component)",
39 expected.x, actual.x, epsilon
41 CPPUNIT_ASSERT_DOUBLES_EQUAL_MESSAGE(
42 msg + " (Y component)",
43 expected.y, actual.y, epsilon
45 CPPUNIT_ASSERT_DOUBLES_EQUAL_MESSAGE(
46 msg + " (Z component)",
47 expected.z, actual.z, epsilon