Added inductance

This commit is contained in:
rbrugo authored and Mateusz Pusz committed 2020-04-10 16:36:08 +02:00
1 parent 88a45452dc
commit 14f00ef775
4 files changed
+94

No files matched your search

@@ -41,6 +41,7 @@
#include "units/physical/si/voltage.h"
#include "units/physical/si/magnetic_induction.h"
#include "units/physical/si/magnetic_flux.h"
#include "units/physical/si/inductance.h"
#include "units/format.h"
#include <catch2/catch.hpp>
@@ -212,6 +213,13 @@ TEST_CASE("fmt::format on synthesized unit symbols", "[text][fmt]")
SECTION("magnetic flux")
{
CHECK(fmt::format("{}", 1q_Wb) == "1 Wb");
CHECK(fmt::format("{}", 1q_G) == "1 G");
}
SECTION("inductance")
{
CHECK(fmt::format("{}", 1q_H) == "1 H");
CHECK(fmt::format("{}", 1q_mH) == "1 mH");
}
SECTION("addition with common ratio")