| 21 | } |
| 22 | |
| 23 | void StringTests::formatedString() |
| 24 | { |
| 25 | const char *format = "%s=%d"; |
| 26 | const char *arg1 = "answer"; |
| 27 | int arg2 = 42; |
| 28 | |
| 29 | std::string result = deskflow::string::sprintf(format, arg1, arg2); |
| 30 | |
| 31 | QCOMPARE("answer=42", result); |
| 32 | } |
| 33 | |
| 34 | QTEST_MAIN(StringTests) |