mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-05 21:24:27 +02:00
test: angular tests updated to conform to the latest quantity creation policy (irrational magnitudes require floating-point representation type)
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user