test: angular tests updated to conform to the latest quantity creation policy (irrational magnitudes require floating-point representation type)

This commit is contained in:
Mateusz Pusz
2023-06-08 19:11:03 +02:00
parent ad3935cbfb
commit 340d2f5d2f

View File

@@ -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