From 340d2f5d2fb35e0b8120a2c6ea1c1cd337491240 Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Thu, 8 Jun 2023 19:11:03 +0200 Subject: [PATCH] test: angular tests updated to conform to the latest quantity creation policy (irrational magnitudes require floating-point representation type) --- test/unit_test/static/angular_test.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/unit_test/static/angular_test.cpp b/test/unit_test/static/angular_test.cpp index a79b3f6d..c3010dfe 100644 --- a/test/unit_test/static/angular_test.cpp +++ b/test/unit_test/static/angular_test.cpp @@ -27,12 +27,12 @@ namespace { using namespace mp_units::angular::unit_symbols; -static_assert(360 * deg == 1 * rev); -static_assert(400 * grad == 1 * rev); +static_assert(360. * deg == 1. * rev); +static_assert(400. * grad == 1. * rev); static_assert(std::numbers::pi * 2 * rad == 1. * rev); static_assert(1 * rad * (1 * rad) == 1 * sr); static_assert(1 * rad * (1 * rad) == 1 * rad2); -static_assert(1 * deg * (1 * deg) == 1 * deg2); +static_assert(1. * deg * (1. * deg) == 1. * deg2); } // namespace