OpenWalnut
1.5.0dev
|
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. More... | |
void | testMaxSet (void) |
Ensure that only the maximal set is returned, and nothing else. More... | |
Unit tests the WUnionFind datastructure.
Definition at line 38 of file WUnionFind_test.h.
|
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().
|
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().