mirror of
https://github.com/bkaradzic/bx.git
synced 2026-02-17 20:52:37 +01:00
Allow BX_CRT_MUSL to be defined via compiler options. Issue #142.
This commit is contained in:
@@ -149,6 +149,14 @@ TEST_CASE("vsnprintf s", "")
|
||||
REQUIRE(test("(null)", "%s", NULL) );
|
||||
}
|
||||
|
||||
TEST_CASE("vsnprintf g", "")
|
||||
{
|
||||
REQUIRE(test(" 0.01", "%7.3g", .01) );
|
||||
REQUIRE(test(" 0.0123", "%7.3G", .0123) );
|
||||
REQUIRE(test("1.23e+05", "%.3g", 123000.25) );
|
||||
REQUIRE(test("1e+05", "%.0g", 123000.25) );
|
||||
}
|
||||
|
||||
TEST_CASE("vsnprintf", "")
|
||||
{
|
||||
REQUIRE(test("x", "%c", 'x') );
|
||||
|
||||
Reference in New Issue
Block a user