Static tests for magnetic induction

This commit is contained in:
rbrugo authored and Mateusz Pusz committed 2020-04-10 16:36:08 +02:00
1 parent b04cc5a0ce
commit 7b0ba64cba
2 files changed
+16

No files matched your search

+12
View File
@@ -40,6 +40,7 @@
#include <units/physical/si/velocity.h>
#include <units/physical/si/voltage.h>
#include <units/physical/si/volume.h>
#include <units/physical/si/magnetic_induction.h>
#include <utility>
namespace {
@@ -188,6 +189,17 @@ static_assert(10q_C / 10q_V == 1q_F);
static_assert(10q_C / 1q_F == 10q_V);
static_assert(10q_V * 1q_F == 10q_C);
// magnetic induction
static_assert(1q_T == 1q_V * 1q_s / (1q_m * 1q_m));
static_assert(10q_T / 1q_s == 10q_V / (1q_m * 1q_m));
static_assert(10q_T * (1q_m * 1q_m) == 10q_s * 1q_V);
static_assert(10q_N / (1q_A * 1q_m) == 10q_T);
static_assert(millitesla::symbol == "mT");
static_assert(microtesla::symbol == basic_symbol_text("µT", "uT"));
static_assert(nanotesla::symbol == "nT");
/* ************** DERIVED DIMENSIONS IN TERMS OF BASE UNITS **************** */
// velocity