feat: dimensionless quantities with a unit one are not special anymore
This commit is contained in:
1 parent
9370c61022
commit
5d73cd0730
7 files changed
+27
-224
No files matched your search
@@ -37,7 +37,7 @@ using namespace mp_units::si::unit_symbols;
|
||||
|
||||
TEST_CASE("'pow<N>()' on quantity changes the value and the dimension accordingly", "[math][pow]")
|
||||
{
|
||||
SECTION("'pow<0>(q)' returns '1'") { CHECK(pow<0>(2 * isq::length[m]) == 1); }
|
||||
SECTION("'pow<0>(q)' returns '1'") { CHECK(pow<0>(2 * isq::length[m]) == 1 * one); }
|
||||
|
||||
SECTION("'pow<1>(q)' returns 'q'") { CHECK(pow<1>(2 * isq::length[m]) == 2 * isq::length[m]); }
|
||||
|
||||
|
||||
Reference in new issue
Block a user