mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-29 04:17:55 +01:00
fixed GH# 65: Poco::format() misorders sign and padding specifiers
This commit is contained in:
@@ -172,6 +172,8 @@ void FormatTest::testInt()
|
||||
i = -42;
|
||||
s = format("%+d", i);
|
||||
assert (s == "-42");
|
||||
s = format("%+04d", i);
|
||||
assert (s == "-042");
|
||||
s = format("%d", i);
|
||||
assert (s == "-42");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user