Add SI prefix to bit unit.

This commit is contained in:
Christoph Seitz committed 2021-01-01 17:31:52 +01:00
1 parent 112cce1c65
commit d568cfa1b3
4 files changed
+46

No files matched your search

@@ -56,5 +56,9 @@ TEST_CASE("operator<< on a data quantity", "[text][ostream]")
stream << 8_q_Kib * 8_q_Kib / 2_q_b;
REQUIRE(stream.str() == "32 Mib");
}
SECTION("prefixed coherent unit (SI)") {
stream << 32_q_kb;
REQUIRE(stream.str() == "32 kb");
}
}
}