Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
opbintree_test.cc File Reference

build_optimal_tree() gives a binary search tree of the least weighted cost More...

#include <gtest/gtest.h>
#include <memory>
#include <random>
#include <opBinTree.H>
#include <tpl_array.H>
#include <tpl_binNode.H>
#include <tpl_binNodeUtils.H>
Include dependency graph for opbintree_test.cc:

Go to the source code of this file.

Functions

 TEST (OptimalBinTree, WithoutKeysItIsEmpty)
 
 TEST (OptimalBinTree, ItsCostIsTheLeastOne)
 
 TEST (OptimalBinTree, ItsCostIsTheLeastOneWithTiesAndZeros)
 

Detailed Description

build_optimal_tree() gives a binary search tree of the least weighted cost

Definition in file opbintree_test.cc.

Function Documentation

◆ TEST() [1/3]

TEST ( OptimalBinTree  ,
ItsCostIsTheLeastOne   
)

Definition at line 126 of file opbintree_test.cc.

References rng.

◆ TEST() [2/3]

TEST ( OptimalBinTree  ,
ItsCostIsTheLeastOneWithTiesAndZeros   
)

Definition at line 141 of file opbintree_test.cc.

References Aleph::equal().

◆ TEST() [3/3]

TEST ( OptimalBinTree  ,
WithoutKeysItIsEmpty   
)

Definition at line 118 of file opbintree_test.cc.