OpenWalnut
1.4.0
|
Unit tests the WUnionFind datastructure. More...
#include <WUnionFind_test.h>
Public Member Functions | |
void | testUnionMergesToBiggerIndex (void) |
The union always ensure that the new canonical element is the biggest index. | |
void | testMaxSet (void) |
Ensure that only the maximal set is returned, and nothing else. |
Unit tests the WUnionFind datastructure.
Definition at line 38 of file WUnionFind_test.h.
void WUnionFindTest::testMaxSet | ( | void | ) | [inline] |
Ensure that only the maximal set is returned, and nothing else.
Definition at line 60 of file WUnionFind_test.h.
References WUnionFind::getMaxSet(), and WUnionFind::merge().
void WUnionFindTest::testUnionMergesToBiggerIndex | ( | void | ) | [inline] |
The union always ensure that the new canonical element is the biggest index.
Definition at line 45 of file WUnionFind_test.h.
References WUnionFind::m_component, and WUnionFind::merge().