mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-29 04:17:55 +01:00
Allow absolute index to be used when all values has been used.
This commit is contained in:
@@ -349,6 +349,9 @@ void FormatTest::testIndex()
|
||||
|
||||
s = format("%%%[1]d%%%[2]d%%%d", 1, 2, 3);
|
||||
assert(s == "%2%3%1");
|
||||
|
||||
s = format("%%%d%%%d%%%[0]d", 1, 2);
|
||||
assert(s == "%1%2%1");
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user