From f07e518ff0cfcc6a084e033c2e304273a8a2999f Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Fri, 4 Oct 2024 14:59:39 +0200 Subject: [PATCH] test: unit tests for the inverse of `mag_constant` added --- test/static/unit_symbol_test.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/static/unit_symbol_test.cpp b/test/static/unit_symbol_test.cpp index 7119e6bf..87112c3f 100644 --- a/test/static/unit_symbol_test.cpp +++ b/test/static/unit_symbol_test.cpp @@ -157,6 +157,11 @@ static_assert(unit_symbol(mag<2> * mag * metre) == "[2 ๐œ‹ m]"); static_assert(unit_symbol(mag<2> * mag * metre) == "[2 pi m]"); static_assert(unit_symbol(mag<2> * mag * metre) == "[2โ‹…๐œ‹ m]"); +static_assert(unit_symbol(mag<1> / mag * one) == "[1/๐œ‹]"); +static_assert(unit_symbol(mag<1> / mag * one) == "[1/pi]"); +static_assert(unit_symbol(mag<1> / mag * one) == "[๐œ‹โปยน]"); +static_assert(unit_symbol(mag<1> / mag * one) == "[pi^-1]"); + static_assert(unit_symbol(mag<1> / mag * metre) == "[1/๐œ‹ m]"); static_assert(unit_symbol(mag<1> / mag * metre) == "[1/pi m]"); static_assert(unit_symbol(mag<1> / mag * metre) == "[๐œ‹โปยน m]");