Allow BX_CRT_MUSL to be defined via compiler options. Issue #142.

This commit is contained in:
Branimir Karadžić
2017-03-18 15:26:06 -07:00
parent 8ce4ee0650
commit ccdb15b820
3 changed files with 14 additions and 1 deletions

View File

@@ -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') );