MCPcopy Create free account
hub / github.com/KDE/kdevelop / testUnite5Int

Method testUnite5Int

kdevplatform/util/tests/test_algorithm.cpp:64–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62}
63
64void TestAlgorithm::testUnite5Int()
65{
66 std::vector<QSet<int>> sets{{9, 18, 4, -5}, {1, 2, 19}, {-2, 0}, {5, 2, 8, -4, 18, 8}, {5, 2, 12}};
67
68 QSet<int> expected;
69 for (const auto& set : sets) {
70 expected += set;
71 }
72
73 const auto setUnion = Algorithm::unite(std::move(sets));
74 QCOMPARE(setUnion, expected);
75}
76
77void TestAlgorithm::testInsert()
78{

Callers

nothing calls this directly

Calls 1

uniteFunction · 0.85

Tested by

no test coverage detected