From 17ce8d3dc8f8a46331ea1d4b57598c699dda1142 Mon Sep 17 00:00:00 2001 From: Ramzi Sabra Date: Thu, 7 May 2020 20:15:47 +0300 Subject: [PATCH] replaced back unit test with one using exponent --- test/unit_test/runtime/fmt_test.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/unit_test/runtime/fmt_test.cpp b/test/unit_test/runtime/fmt_test.cpp index 23510429..515b8dea 100644 --- a/test/unit_test/runtime/fmt_test.cpp +++ b/test/unit_test/runtime/fmt_test.cpp @@ -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⁻² m³"); - CHECK(os.str() == "8 dal"); + CHECK(os.str() == "8 × 10⁻¹⁰ m³"); } SECTION("fmt with default format {} on a quantity")