replaced back unit test with one using exponent

This commit is contained in:
Ramzi Sabra
2020-05-07 20:15:47 +03:00
committed by Mateusz Pusz
parent 81b3ff9bdc
commit 17ce8d3dc8

View File

@@ -295,13 +295,12 @@ TEST_CASE("operator<< on a quantity", "[text][ostream][fmt]")
SECTION("unit::ratio for a dimension without a special symbol")
{
const auto q = 2q_cm * 2q_m * 2q_m;
const auto q = 2q_um * 2q_cm * 2q_cm;
os << q;
SECTION("iostream")
{
//CHECK(os.str() == "8 × 10⁻²");
CHECK(os.str() == "8 dal");
CHECK(os.str() == "8 × 10⁻¹⁰");
}
SECTION("fmt with default format {} on a quantity")