From 95e45557ba76132d7b7e8326bccd08a50f81eb0e Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 14 Feb 2021 13:35:52 +0000 Subject: Rename flat_angle to vector_yaw --- test/test-maths.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/test-maths.cpp b/test/test-maths.cpp index aed51d0..ba1bc7b 100644 --- a/test/test-maths.cpp +++ b/test/test-maths.cpp @@ -8,13 +8,13 @@ constexpr auto quarter_pi = pi / 4.F; using vecter_to_angle = std::tuple; -BOOST_DATA_TEST_CASE(test_flat_angle, +BOOST_DATA_TEST_CASE(test_vector_yaw, boost::unit_test::data::make( {{north, 0}, {south, pi}, {west, half_pi}, {east, -half_pi}, {north + east, -quarter_pi}, {south + east, quarter_pi * -3}, {north + west, quarter_pi}, {south + west, quarter_pi * 3}}), v, a) { - BOOST_CHECK_CLOSE(flat_angle(v), a, 1.F); + BOOST_CHECK_CLOSE(vector_yaw(v), a, 1.F); } using normalize_angle = std::tuple; -- cgit v1.2.3