Hi, is it possible to use QPairs as test values? I'm running into some trouble:
Code:
void function_data() { QTest::addColumn<QDate>("testDate"); QTest::addColumn< QPair<QDate,QDate> >("expectedOutputs"); // newRow... } void function() { QFETCH(QPair<QDate,QDate>, expectedOutputs); // QCOMPARE... }
My compiler seems to have issues with the comma in the QPair template and complainsCode:
error: macro "QFETCH" passed 3 arguments, but takes just 2