mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-04 04:44:27 +02:00
test: fmt
test fixed for radian
This commit is contained in:
@@ -167,7 +167,7 @@ TEST_CASE("operator<< on a quantity", "[text][ostream][fmt]")
|
|||||||
const auto q = 123 * isq::angular_acceleration[rad / s2];
|
const auto q = 123 * isq::angular_acceleration[rad / s2];
|
||||||
os << q;
|
os << q;
|
||||||
|
|
||||||
SECTION("iostream") { CHECK(os.str() == "123 1/s²"); }
|
SECTION("iostream") { CHECK(os.str() == "123 rad/s²"); }
|
||||||
|
|
||||||
SECTION("fmt with default format {} on a quantity") { CHECK(STD_FMT::format("{}", q) == os.str()); }
|
SECTION("fmt with default format {} on a quantity") { CHECK(STD_FMT::format("{}", q) == os.str()); }
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user