mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-05 05:04:27 +02:00
replaced back unit test with one using exponent
This commit is contained in:
committed by
Mateusz Pusz
parent
81b3ff9bdc
commit
17ce8d3dc8
@@ -295,13 +295,12 @@ TEST_CASE("operator<< on a quantity", "[text][ostream][fmt]")
|
|||||||
|
|
||||||
SECTION("unit::ratio for a dimension without a special symbol")
|
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;
|
os << q;
|
||||||
|
|
||||||
SECTION("iostream")
|
SECTION("iostream")
|
||||||
{
|
{
|
||||||
//CHECK(os.str() == "8 × 10⁻² m³");
|
CHECK(os.str() == "8 × 10⁻¹⁰ m³");
|
||||||
CHECK(os.str() == "8 dal");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
SECTION("fmt with default format {} on a quantity")
|
SECTION("fmt with default format {} on a quantity")
|
||||||
|
Reference in New Issue
Block a user