mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-05 20:51:25 -07:00
parent
f27f2c20e0
commit
10ee1ab7a2
15 changed files with 24 additions and 48 deletions
|
@ -42,20 +42,6 @@ public:
|
|||
TestOrderedSet() = default;
|
||||
|
||||
private slots:
|
||||
#if __cplusplus < 202002L
|
||||
void testContains() const
|
||||
{
|
||||
const OrderedSet<QString> set {u"a"_s, u"b"_s, u"c"_s};
|
||||
QVERIFY(set.contains(u"a"_s));
|
||||
QVERIFY(set.contains(u"b"_s));
|
||||
QVERIFY(set.contains(u"c"_s));
|
||||
QVERIFY(!set.contains(u"z"_s));
|
||||
|
||||
const OrderedSet<QString> emptySet;
|
||||
QVERIFY(!emptySet.contains(u"a"_s));
|
||||
}
|
||||
#endif
|
||||
|
||||
void testCount() const
|
||||
{
|
||||
const OrderedSet<QString> set {u"a"_s, u"b"_s, u"c"_s, u"c"_s};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue