Add test data for string forms of numbers.

Similar to the UUID benchmark, but won't have any non-numerical characters.

Change-Id: I7487c97cab96fd53c180fe12061e7be3ca96e883
Reviewed-by: João Abecasis <joao.abecasis@nokia.com>
bb10
Robin Burchell 2012-02-28 20:49:25 +01:00 committed by Qt by Nokia
parent 693a286600
commit 0f3d9b1d84
1 changed files with 12 additions and 0 deletions

View File

@ -135,6 +135,18 @@ void tst_QHash::data()
QTest::newRow("dictionary") << dict;
}
{
// string versions of numbers.
static QStringList numbers;
if (numbers.isEmpty()) {
for (int i = 5000000; i < 5005001; ++i)
numbers.append(QString::number(i));
}
QTest::newRow("numbers") << numbers;
}
}
void tst_QHash::qhash_qt4()