tst_QSet: add a non-trivial test for op==
Change-Id: Id42b2361e8741ee0d719fd52885a2d6dfdf6a634 Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
This commit is contained in:
parent
13ec068ce2
commit
832aea1e8e
@ -137,6 +137,16 @@ void tst_QSet::operator_eq()
|
||||
QVERIFY(a != b);
|
||||
QVERIFY(!(a == b));
|
||||
}
|
||||
|
||||
{
|
||||
QSet<int> s1, s2;
|
||||
s1.reserve(100);
|
||||
s2.reserve(4);
|
||||
QVERIFY(s1 == s2);
|
||||
s1 << 100 << 200 << 300 << 400;
|
||||
s2 << 400 << 300 << 200 << 100;
|
||||
QVERIFY(s1 == s2);
|
||||
}
|
||||
}
|
||||
|
||||
void tst_QSet::swap()
|
||||
|
Loading…
Reference in New Issue
Block a user