aacid added a comment.
Personally i would include (and use) a fake translation as part of the tests and then it would just evaluate to the actual result, i.e. QCOMPARE(format.formatSpelloutDuration(3610000), QStringLiteral("1 hour(s)")); would end up being QCOMPARE(format.formatSpelloutDuration(3610000), QStringLiteral("1 hour")); because we're using the "fake" translation. But i understand that is much more work and this makes the test pass already, so if noone disagrees i think this is good enough :) REPOSITORY R244 KCoreAddons REVISION DETAIL https://phabricator.kde.org/D14779 To: habacker, #frameworks, cfeck Cc: aacid, kde-frameworks-devel, michaelh, ngraham, bruns