OpenWalnut  1.5.0dev
Public Member Functions | List of all members
WUnionFindTest Class Reference

Unit tests the WUnionFind datastructure. More...

#include <WUnionFind_test.h>

+ Inheritance diagram for WUnionFindTest:
+ Collaboration diagram for WUnionFindTest:

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...
 

Detailed Description

Unit tests the WUnionFind datastructure.

Definition at line 38 of file WUnionFind_test.h.

Member Function Documentation

◆ testMaxSet()

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().

+ Here is the call graph for this function:

◆ testUnionMergesToBiggerIndex()

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().

+ Here is the call graph for this function:

The documentation for this class was generated from the following file: