mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-04 20:54:28 +02:00
Added magnetic induction unit tests
This commit is contained in:
@@ -39,6 +39,7 @@
|
||||
#include "units/physical/si/density.h"
|
||||
#include "units/physical/si/resistance.h"
|
||||
#include "units/physical/si/voltage.h"
|
||||
#include "units/physical/si/magnetic_induction.h"
|
||||
#include "units/format.h"
|
||||
#include <catch2/catch.hpp>
|
||||
|
||||
@@ -202,6 +203,11 @@ TEST_CASE("fmt::format on synthesized unit symbols", "[text][fmt]")
|
||||
CHECK(fmt::format("{}", 1q_N_per_m) == "1 N/m");
|
||||
}
|
||||
|
||||
SECTION("magnetic induction")
|
||||
{
|
||||
CHECK(fmt::format("{}", 1q_T) == "1 T");
|
||||
}
|
||||
|
||||
SECTION("addition with common ratio")
|
||||
{
|
||||
CHECK(fmt::format("{}", 1q_in + 1q_yd) == "37 in");
|
||||
|
Reference in New Issue
Block a user