Added bx::toHuman. (#370)

This commit is contained in:
Branimir Karadžić
2026-02-27 07:37:36 -08:00
committed by GitHub
parent 2b946b4668
commit a6168a9d1c
7 changed files with 137 additions and 46 deletions

View File

@@ -26,7 +26,7 @@ TEST_CASE("prettify", "[string]")
prettify(tmp, BX_COUNTOF(tmp), 4000, bx::Units::Kilo);
REQUIRE(0 == bx::strCmp(tmp, "4 kB") );
prettify(tmp, BX_COUNTOF(tmp), 4096, bx::Units::Kibi);
prettify(tmp, BX_COUNTOF(tmp), 4096, bx::Units::KibiByte);
REQUIRE(0 == bx::strCmp(tmp, "4 KiB") );
}