summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/tools/qdate
diff options
context:
space:
mode:
authorJason McDonald <jason.mcdonald@nokia.com>2012-02-14 11:52:40 +1000
committerQt by Nokia <qt-info@nokia.com>2012-02-14 06:19:16 +0100
commitab9be7cc23e52c2b5a43c66ec53bcb961188f924 (patch)
tree1586575ae8d7a78d412eaf03f2be2e1a93e2ec1c /tests/auto/corelib/tools/qdate
parent1cda7678a61cb5807d73a06e96fdc3068001d9fb (diff)
Eliminate duplicate data row names from corelib autotests.
Change-Id: I57a37f19746b76c6c9c3534f5c66c5a5478dae24 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
Diffstat (limited to 'tests/auto/corelib/tools/qdate')
-rw-r--r--tests/auto/corelib/tools/qdate/tst_qdate.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/tests/auto/corelib/tools/qdate/tst_qdate.cpp b/tests/auto/corelib/tools/qdate/tst_qdate.cpp
index 4921a7e734..258dbf8625 100644
--- a/tests/auto/corelib/tools/qdate/tst_qdate.cpp
+++ b/tests/auto/corelib/tools/qdate/tst_qdate.cpp
@@ -147,14 +147,14 @@ void tst_QDate::isValid_data()
QTest::newRow("month 13") << 2000 << 13 << 1 << nullJd << false;
// test leap years
- QTest::newRow("non-leap") << 2006 << 2 << 29 << nullJd << false;
- QTest::newRow("normal leap") << 2004 << 2 << 29 << qint64(2453065) << true;
- QTest::newRow("century leap") << 1900 << 2 << 29 << nullJd << false;
- QTest::newRow("century leap") << 2100 << 2 << 29 << nullJd << false;
- QTest::newRow("400-years leap") << 2000 << 2 << 29 << qint64(2451604) << true;
- QTest::newRow("400-years leap 2") << 2400 << 2 << 29 << qint64(2597701) << true;
- QTest::newRow("400-years leap 3") << 1600 << 2 << 29 << qint64(2305507) << true;
- QTest::newRow("year 0") << 0 << 2 << 27 << nullJd << false;
+ QTest::newRow("non-leap") << 2006 << 2 << 29 << nullJd << false;
+ QTest::newRow("normal leap") << 2004 << 2 << 29 << qint64(2453065) << true;
+ QTest::newRow("century leap 1900") << 1900 << 2 << 29 << nullJd << false;
+ QTest::newRow("century leap 2100") << 2100 << 2 << 29 << nullJd << false;
+ QTest::newRow("400-years leap 2000") << 2000 << 2 << 29 << qint64(2451604) << true;
+ QTest::newRow("400-years leap 2400") << 2400 << 2 << 29 << qint64(2597701) << true;
+ QTest::newRow("400-years leap 1600") << 1600 << 2 << 29 << qint64(2305507) << true;
+ QTest::newRow("year 0") << 0 << 2 << 27 << nullJd << false;
// test the number of days in months:
QTest::newRow("jan") << 2000 << 1 << 31 << qint64(2451575) << true;
@@ -262,7 +262,7 @@ void tst_QDate::dayOfWeek_data()
QTest::newRow("data8") << -4800 << 1 << 1 << 1;
QTest::newRow("data9") << -4800 << 1 << 2 << 2;
QTest::newRow("data10") << -4800 << 1 << 3 << 3;
- QTest::newRow("data12") << -4800 << 1 << 4 << 4;
+ QTest::newRow("data11") << -4800 << 1 << 4 << 4;
QTest::newRow("data12") << -4800 << 1 << 5 << 5;
QTest::newRow("data13") << -4800 << 1 << 6 << 6;
QTest::newRow("data14") << -4800 << 1 << 7 << 7;
@@ -580,10 +580,10 @@ void tst_QDate::addMonths_data()
QTest::newRow( "data14" ) << 2000 << 2 << 29 << -12 << 1999 << 2 << 28;
// year sign change:
- QTest::newRow( "data14" ) << 1 << 1 << 1 << -1 << -1 << 12 << 1;
- QTest::newRow( "data15" ) << 1 << 1 << 1 << -12 << -1 << 1 << 1;
- QTest::newRow( "data16" ) << -1 << 12 << 1 << 1 << 1 << 1 << 1;
- QTest::newRow( "data17" ) << -1 << 1 << 1 << 12 << 1 << 1 << 1;
+ QTest::newRow( "data15" ) << 1 << 1 << 1 << -1 << -1 << 12 << 1;
+ QTest::newRow( "data16" ) << 1 << 1 << 1 << -12 << -1 << 1 << 1;
+ QTest::newRow( "data17" ) << -1 << 12 << 1 << 1 << 1 << 1 << 1;
+ QTest::newRow( "data18" ) << -1 << 1 << 1 << 12 << 1 << 1 << 1;
}
void tst_QDate::addYears()