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 5e93361888e3d2b03e7b6da19517b44e0239fb47. Change-Id: I3c78714ad6fb3f94233789dd2c8884d9b157fa76 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> (cherry picked from commit fa522eb8becba3243aae8bee191f6f60672434f2) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
31a26a4f2e
commit
9f1c5945b7
@ -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…
x
Reference in New Issue
Block a user