mirror of https://github.com/qt/qtbase.git
tst_QHashFunctions: use actual seed in consistent() test function
We were only ever testing with a 0 seed, even though the function was
called for all QFETCH_GLOBAL seeds.
Add the seed.
Amends 5e93361888
.
Pick-to: 6.6 6.5 6.2 5.15
Change-Id: I3c78714ad6fb3f94233789dd2c8884d9b157fa76
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
d50fd6acfa
commit
fa522eb8be
|
@ -64,7 +64,7 @@ void tst_QHashFunctions::consistent()
|
|||
{
|
||||
// QString-like
|
||||
const QString s = QStringLiteral("abcdefghijklmnopqrstuvxyz").repeated(16);
|
||||
QCOMPARE(qHash(s), qHash(QStringView(s)));
|
||||
QCOMPARE(qHash(s, seed), qHash(QStringView(s), seed));
|
||||
}
|
||||
|
||||
void tst_QHashFunctions::initTestCase()
|
||||
|
|
Loading…
Reference in New Issue