pow<0> support added
This commit is contained in:
1 parent
b2f33c6dfa
commit
8543ab65d1
3 files changed
+9
-1
No files matched your search
@@ -31,7 +31,7 @@ using namespace units;
|
||||
|
||||
TEST_CASE("pow<N>() on quantity changes the value and the dimension accordingly", "[math][pow]")
|
||||
{
|
||||
// CHECK(pow<0>(2m) == 2);
|
||||
CHECK(pow<0>(2m) == 1);
|
||||
CHECK(pow<1>(2m) == 2m);
|
||||
CHECK(pow<2>(2m) == 4sq_m);
|
||||
CHECK(pow<3>(2m) == 8cub_m);
|
||||
|
||||
Reference in new issue
Block a user