mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-16 11:48:54 +01:00
Poco::NumberFormatter::format(float, precision) rounding changed #1128 (tests fix)
This commit is contained in:
parent
30e77529a7
commit
9fef0338ce
@ -704,8 +704,8 @@ void StringTest::testNumericStringPadding()
|
||||
assert (doubleToStr(str, 12.45, 2, 5) == "12.45");
|
||||
assert (doubleToStr(str, 12.45, 1, 4) == "12.5");
|
||||
assert (doubleToStr(str, 12.45, 2, 6) == " 12.45");
|
||||
assert (floatToStr(str, 12.455f, 3, 7) == " 12.455");
|
||||
assert (floatToStr(str, 12.455f, 2, 6) == " 12.46");
|
||||
assert (doubleToStr(str, 12.455, 3, 7) == " 12.455");
|
||||
assert (doubleToStr(str, 12.455, 2, 6) == " 12.46");
|
||||
}
|
||||
|
||||
void StringTest::testStringToFloatError()
|
||||
|
Loading…
Reference in New Issue
Block a user