Fixed fromString double.

This commit is contained in:
Branimir Karadžić
2017-10-22 19:24:26 -07:00
parent 0a2c440a77
commit cef31cca44
2 changed files with 25 additions and 15 deletions

View File

@@ -248,6 +248,7 @@ TEST_CASE("toString double", "")
REQUIRE(testToString(1231231.23, "1231231.23") );
REQUIRE(testToString(0.000000000123123, "1.23123e-10") );
REQUIRE(testToString(0.0000000001, "1e-10") );
REQUIRE(testToString(-270.000000, "-270.0") );
}
static bool testFromString(double _value, const char* _input)
@@ -295,6 +296,7 @@ TEST_CASE("fromString double", "")
REQUIRE(testFromString(1231231.23, "1231231.23") );
REQUIRE(testFromString(0.000000000123123, "1.23123e-10") );
REQUIRE(testFromString(0.0000000001, "1e-10") );
REQUIRE(testFromString(-270.000000, "-270.0") );
}
static bool testFromString(int32_t _value, const char* _input)