mirror of
https://github.com/bkaradzic/bx.git
synced 2026-02-19 13:33:00 +01:00
Fixed toUpper/toLower string function.
This commit is contained in:
@@ -90,6 +90,7 @@ TEST_CASE("vsnprintf f")
|
||||
REQUIRE(test("-1.2345670000e-9", "%.10f", -1.234567e-9) );
|
||||
|
||||
REQUIRE(test("3.141592", "%f", 3.1415926535897932) );
|
||||
REQUIRE(test("3.141592", "%F", 3.1415926535897932) );
|
||||
REQUIRE(test("3", "%.0f", 3.1415926535897932) );
|
||||
REQUIRE(test("3.1", "%.1f", 3.1415926535897932) );
|
||||
REQUIRE(test("3.14", "%.2f", 3.1415926535897932) );
|
||||
@@ -107,8 +108,10 @@ TEST_CASE("vsnprintf f")
|
||||
REQUIRE(test("3.14159265358979", "%.14f", 3.1415926535897932) );
|
||||
REQUIRE(test("3.141592653589793", "%.15f", 3.1415926535897932) );
|
||||
REQUIRE(test("3.1415926535897930", "%.16f", 3.1415926535897932) );
|
||||
REQUIRE(test("3.1415926535897930", "%.16F", 3.1415926535897932) );
|
||||
|
||||
REQUIRE(test("-3.141592e-9", "%f", -3.1415926535897932e-9) );
|
||||
REQUIRE(test("-3.141592E-9", "%F", -3.1415926535897932e-9) );
|
||||
REQUIRE(test("-3e-9", "%.0f", -3.1415926535897932e-9) );
|
||||
REQUIRE(test("-3.1e-9", "%.1f", -3.1415926535897932e-9) );
|
||||
REQUIRE(test("-3.14e-9", "%.2f", -3.1415926535897932e-9) );
|
||||
@@ -126,6 +129,7 @@ TEST_CASE("vsnprintf f")
|
||||
REQUIRE(test("-3.14159265358979e-9", "%.14f", -3.1415926535897932e-9) );
|
||||
REQUIRE(test("-3.141592653589793e-9", "%.15f", -3.1415926535897932e-9) );
|
||||
REQUIRE(test("-3.1415926535897930e-9", "%.16f", -3.1415926535897932e-9) );
|
||||
REQUIRE(test("-3.1415926535897930E-9", "%.16F", -3.1415926535897932e-9) );
|
||||
|
||||
REQUIRE(test("1e-12", "%f", 1e-12));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user