mirror of
https://github.com/bkaradzic/bx.git
synced 2026-02-21 14:23:03 +01:00
Fixed issue #267.
This commit is contained in:
@@ -72,9 +72,11 @@ TEST_CASE("vsnprintf f")
|
||||
REQUIRE(test("0001.500", "%08.3f", 1.5) );
|
||||
REQUIRE(test("+001.500", "%+08.3f", 1.5) );
|
||||
REQUIRE(test("-001.500", "%+08.3f", -1.5) );
|
||||
REQUIRE(test("0.003906", "%f", 0.00390625) );
|
||||
REQUIRE(test("0.0039", "%.4f", 0.00390625) );
|
||||
|
||||
REQUIRE(test("0.00390625", "%f", 0.00390625) );
|
||||
REQUIRE(test("-1.234567e-9", "%f", -1.234567e-9) );
|
||||
|
||||
REQUIRE(test("0.00390625", "%.8f", 0.00390625) );
|
||||
REQUIRE(test("-0.00390625", "%.8f", -0.00390625) );
|
||||
REQUIRE(test("1.50000000000000000", "%.17f", 1.5) );
|
||||
|
||||
Reference in New Issue
Block a user