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
parent
693a286600
commit
0f3d9b1d84
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in New Issue