| 10 | #include "base/String.h" |
| 11 | |
| 12 | void StringTests::formatWithArgs() |
| 13 | { |
| 14 | const char *format = "%%%{1}=%{2}"; |
| 15 | const char *arg1 = "answer"; |
| 16 | const char *arg2 = "42"; |
| 17 | |
| 18 | std::string result = deskflow::string::format(format, arg1, arg2); |
| 19 | |
| 20 | QCOMPARE(result, "%answer=42"); |
| 21 | } |
| 22 | |
| 23 | void StringTests::formatedString() |
| 24 | { |