mirror of
https://github.com/bkaradzic/bx.git
synced 2026-02-17 20:52:37 +01:00
Cleanup.
This commit is contained in:
@@ -19,6 +19,16 @@ TEST_CASE("stringPrintfTy", "")
|
||||
REQUIRE(0 == bx::strCmp(bx::StringView(test), "printf into std::string.") );
|
||||
}
|
||||
|
||||
TEST_CASE("prettify", "")
|
||||
{
|
||||
char tmp[1024];
|
||||
prettify(tmp, BX_COUNTOF(tmp), 4000, bx::Units::Kilo);
|
||||
REQUIRE(0 == bx::strCmp(tmp, "4.00 kB") );
|
||||
|
||||
prettify(tmp, BX_COUNTOF(tmp), 4096, bx::Units::Kibi);
|
||||
REQUIRE(0 == bx::strCmp(tmp, "4.00 KiB") );
|
||||
}
|
||||
|
||||
TEST_CASE("chars", "")
|
||||
{
|
||||
for (char ch = 'A'; ch <= 'Z'; ++ch)
|
||||
|
||||
Reference in New Issue
Block a user