Added magnetic flux

This commit is contained in:
rbrugo authored and Mateusz Pusz committed 2020-04-10 16:36:08 +02:00
1 parent 608a75b61f
commit 86eefe1b0d
4 files changed
+93

No files matched your search

@@ -40,6 +40,7 @@
#include "units/physical/si/resistance.h"
#include "units/physical/si/voltage.h"
#include "units/physical/si/magnetic_induction.h"
#include "units/physical/si/magnetic_flux.h"
#include "units/format.h"
#include <catch2/catch.hpp>
@@ -208,6 +209,11 @@ TEST_CASE("fmt::format on synthesized unit symbols", "[text][fmt]")
CHECK(fmt::format("{}", 1q_T) == "1 T");
}
SECTION("magnetic flux")
{
CHECK(fmt::format("{}", 1q_Wb) == "1 Wb");
}
SECTION("addition with common ratio")
{
CHECK(fmt::format("{}", 1q_in + 1q_yd) == "37 in");