mirror of
https://github.com/pocoproject/poco.git
synced 2025-02-24 15:26:52 +01:00
Add tests for the new message length functionality for messageSource.
This commit is contained in:
parent
b4aa3cedfa
commit
f0ad6127ab
@ -98,6 +98,21 @@ void PatternFormatterTest::testPatternFormatter()
|
||||
fmt.setProperty("pattern", "%[testParam] %p");
|
||||
fmt.format(msg, result);
|
||||
assert (result == "Test Parameter Error");
|
||||
|
||||
result.clear();
|
||||
fmt.setProperty("pattern", "start %v[10] end");
|
||||
fmt.format(msg, result);
|
||||
assert (result == "start TestSource end");
|
||||
|
||||
result.clear();
|
||||
fmt.setProperty("pattern", "start %v[12] end");
|
||||
fmt.format(msg, result);
|
||||
assert (result == "start TestSource end");
|
||||
|
||||
result.clear();
|
||||
fmt.setProperty("pattern", "start %v[8] end");
|
||||
fmt.format(msg, result);
|
||||
assert (result == "start stSource end");
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user