Hi, is it possible to use QPairs as test values? I'm running into some trouble:

Qt Code:
  1. void function_data()
  2. {
  3. QTest::addColumn<QDate>("testDate");
  4. QTest::addColumn< QPair<QDate,QDate> >("expectedOutputs");
  5.  
  6. // newRow...
  7. }
  8.  
  9. void function()
  10. {
  11. QFETCH(QDate, testDate);
  12. QFETCH(QPair<QDate,QDate>, expectedOutputs);
  13.  
  14. // QCOMPARE...
  15. }
To copy to clipboard, switch view to plain text mode 

My compiler seems to have issues with the comma in the QPair template and complains
Qt Code:
  1. error: macro "QFETCH" passed 3 arguments, but takes just 2
To copy to clipboard, switch view to plain text mode