summaryrefslogtreecommitdiff
path: root/test/testHelpers.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2023-11-03 21:31:54 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2023-11-03 21:31:54 +0000
commit5d9849266e11043deefdd18b4701c7e9c289f37e (patch)
treed43e7f97613dd6231b9d900758ed89e37b1851d5 /test/testHelpers.h
parentDon't request a specific OpenGL version, just check we get something sufficie... (diff)
parentImplement terrain intersect ray (diff)
downloadilt-5d9849266e11043deefdd18b4701c7e9c289f37e.tar.bz2
ilt-5d9849266e11043deefdd18b4701c7e9c289f37e.tar.xz
ilt-5d9849266e11043deefdd18b4701c7e9c289f37e.zip
Psycho-rebased branch terrain on top of main
Diffstat (limited to 'test/testHelpers.h')
-rw-r--r--test/testHelpers.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/testHelpers.h b/test/testHelpers.h
index 54b7fc6..79e966a 100644
--- a/test/testHelpers.h
+++ b/test/testHelpers.h
@@ -2,6 +2,7 @@
#include <boost/test/tools/context.hpp>
#include <boost/test/tools/interface.hpp>
+#include <iomanip> // IWYU pragma: keep std::setprecision
#include <memory>
std::unique_ptr<char, decltype(&free)> uasprintf(const char * fmt, ...) __attribute__((format(printf, 1, 2)));
@@ -9,7 +10,7 @@ std::unique_ptr<char, decltype(&free)> uasprintf(const char * fmt, ...) __attrib
#define BOOST_CHECK_CLOSE_VEC(a_, b_) \
{ \
const auto a {a_}, b {b_}; \
- BOOST_TEST_CONTEXT("BOOST_CHECK_CLOSE_VEC(" << a << ", " << b << ")") { \
+ BOOST_TEST_CONTEXT("BOOST_CHECK_CLOSE_VEC(" << std::setprecision(8) << a << ", " << b << ")") { \
BOOST_CHECK_LT(glm::length(a - b), 0.1F); \
} \
}