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

Method testUnite2String

kdevplatform/util/tests/test_algorithm.cpp:55–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53}
54
55void TestAlgorithm::testUnite2String()
56{
57 const QSet<QString> a{"a", "bc", "12", "an"};
58 const QSet<QString> b{"-1", "24", "bc", "foo", "bar", "0"};
59 const auto sets = {a, b};
60 const auto setUnion = Algorithm::unite(sets.begin(), sets.end());
61 QCOMPARE(setUnion, a + b);
62}
63
64void TestAlgorithm::testUnite5Int()
65{

Callers

nothing calls this directly

Calls 3

uniteFunction · 0.85
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected