|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Tests for Rand Tree. More...
#include <gtest/gtest.h>#include <tpl_rand_tree.H>#include <tpl_binNodeUtils.H>#include <random>#include <set>#include <vector>#include <algorithm>Go to the source code of this file.
Classes | |
| class | NodePool |
Typedefs | |
| using | Tree = Rand_Tree< int > |
| using | Node = Tree::Node |
Functions | |
| template<typename NodeT > | |
| std::vector< int > | inorder_keys (NodeT *root) |
| TEST (RandTree, EmptyTreeProperties) | |
| TEST (RandTree, SearchOnEmptyTreeReturnsNull) | |
| TEST (RandTree, RemoveFromEmptyTreeReturnsNull) | |
| TEST (RandTree, InsertSingleElement) | |
| TEST (RandTree, InsertMultipleElements) | |
| TEST (RandTree, InsertRejectsDuplicates) | |
| TEST (RandTree, InsertDupAllowsDuplicates) | |
| TEST (RandTree, InsertInAscendingOrder) | |
| TEST (RandTree, InsertInDescendingOrder) | |
| TEST (RandTree, SearchFindsExistingKey) | |
| TEST (RandTree, SearchReturnsNullForMissingKey) | |
| TEST (RandTree, SearchOrInsertReturnsExisting) | |
| TEST (RandTree, SearchOrInsertInsertsNew) | |
| TEST (RandTree, RemoveExistingKey) | |
| TEST (RandTree, RemoveReturnsNullForMissingKey) | |
| TEST (RandTree, RemoveRoot) | |
| TEST (RandTree, RemoveAllElements) | |
| TEST (RandTree, RemoveInOrder) | |
| TEST (RandTree, RemoveInReverseOrder) | |
| TEST (RandTree, SelectReturnsCorrectNode) | |
| TEST (RandTree, SelectOutOfRangeThrows) | |
| TEST (RandTree, PositionOfExistingKey) | |
| TEST (RandTree, PositionOfMissingKey) | |
| TEST (RandTree, FindPositionOfExistingKey) | |
| TEST (RandTree, FindPositionOfMissingKeyInMiddle) | |
| TEST (RandTree, FindPositionLessThanMin) | |
| TEST (RandTree, FindPositionGreaterThanMax) | |
| TEST (RandTree, RemovePosValidPosition) | |
| TEST (RandTree, RemovePosFirst) | |
| TEST (RandTree, RemovePosLast) | |
| TEST (RandTree, SplitKeyNotInTree) | |
| TEST (RandTree, SplitKeyInTree) | |
| TEST (RandTree, SplitKeyDup) | |
| TEST (RandTree, SplitPos) | |
| TEST (RandTree, JoinWithNoDuplicates) | |
| TEST (RandTree, JoinWithDuplicates) | |
| TEST (RandTree, JoinDup) | |
| TEST (RandTree, JoinExclusive) | |
| TEST (RandTree, IteratorTraversesInOrder) | |
| TEST (RandTree, IteratorOnEmptyTree) | |
| TEST (RandTree, IteratorAfterRemoval) | |
| TEST (RandTree, SwapTrees) | |
| TEST (RandTree, SeedAffectsStructure) | |
| TEST (RandTree, CustomComparatorGreater) | |
| TEST (RandTree, NegativeKeys) | |
| TEST (RandTree, SingleElementOperations) | |
| TEST (RandTree, RandomInsertSearchRemove) | |
| TEST (RandTree, LargeTreeOperations) | |
| TEST (RandTreeVtl, BasicOperations) | |
| TEST (RandTree, VerifyDetectsValidTree) | |
| TEST (RandTree, GetRootReturnsReference) | |
| TEST (RandTree, KeyCompAndGetCompare) | |
| TEST (RandTree, GslRngObjectNotNull) | |
| TEST (RandTree, SetSeedChangesSequence) | |
Tests for Rand Tree.
Definition in file rand-tree.cc.
| using Node = Tree::Node |
Definition at line 55 of file rand-tree.cc.
Definition at line 54 of file rand-tree.cc.
| std::vector< int > inorder_keys | ( | NodeT * | root | ) |
Definition at line 59 of file rand-tree.cc.
References KEY, Aleph::LLINK(), Aleph::maps(), Aleph::RLINK(), and root().
Referenced by TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), and TEST_F().
| TEST | ( | RandTree | , |
| CustomComparatorGreater | |||
| ) |
Definition at line 875 of file rand-tree.cc.
References KEY, Aleph::maps(), and nodes.
| TEST | ( | RandTree | , |
| EmptyTreeProperties | |||
| ) |
Definition at line 103 of file rand-tree.cc.
References Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::getRoot(), Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::is_empty(), Aleph::maps(), Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::size(), and Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::verify().
| TEST | ( | RandTree | , |
| FindPositionGreaterThanMax | |||
| ) |
Definition at line 521 of file rand-tree.cc.
References Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::find_position(), Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::insert(), KEY, and Aleph::maps().
| TEST | ( | RandTree | , |
| FindPositionLessThanMin | |||
| ) |
Definition at line 508 of file rand-tree.cc.
References Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::find_position(), Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::insert(), KEY, and Aleph::maps().
| TEST | ( | RandTree | , |
| FindPositionOfExistingKey | |||
| ) |
Definition at line 480 of file rand-tree.cc.
References Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::find_position(), Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::insert(), KEY, and Aleph::maps().
| TEST | ( | RandTree | , |
| FindPositionOfMissingKeyInMiddle | |||
| ) |
Definition at line 493 of file rand-tree.cc.
References Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::find_position(), Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::insert(), and Aleph::maps().
| TEST | ( | RandTree | , |
| GetRootReturnsReference | |||
| ) |
Definition at line 1098 of file rand-tree.cc.
References Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::getRoot(), Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::insert(), KEY, Aleph::maps(), and root().
| TEST | ( | RandTree | , |
| GslRngObjectNotNull | |||
| ) |
Definition at line 1125 of file rand-tree.cc.
References Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::gsl_rng_object(), Aleph::maps(), and rng.
| TEST | ( | RandTree | , |
| InsertDupAllowsDuplicates | |||
| ) |
Definition at line 180 of file rand-tree.cc.
References Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::insert_dup(), Aleph::maps(), Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::size(), and Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::verify().
| TEST | ( | RandTree | , |
| InsertInAscendingOrder | |||
| ) |
Definition at line 192 of file rand-tree.cc.
References StlAlephIterator< SetName >::begin(), StlAlephIterator< SetName >::end(), Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::getRoot(), Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::insert(), Aleph::maps(), Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::size(), and Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::verify().
| TEST | ( | RandTree | , |
| InsertInDescendingOrder | |||
| ) |
Definition at line 209 of file rand-tree.cc.
References StlAlephIterator< SetName >::begin(), StlAlephIterator< SetName >::end(), Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::getRoot(), Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::insert(), Aleph::maps(), Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::size(), and Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::verify().
| TEST | ( | RandTree | , |
| InsertMultipleElements | |||
| ) |
Definition at line 149 of file rand-tree.cc.
References Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::getRoot(), Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::insert(), Aleph::maps(), Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::size(), and Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::verify().
| TEST | ( | RandTree | , |
| InsertRejectsDuplicates | |||
| ) |
Definition at line 164 of file rand-tree.cc.
References Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::insert(), Aleph::maps(), and Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::size().
| TEST | ( | RandTree | , |
| InsertSingleElement | |||
| ) |
Definition at line 134 of file rand-tree.cc.
References Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::getRoot(), Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::insert(), Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::is_empty(), Aleph::maps(), Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::size(), and Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::verify().
| TEST | ( | RandTree | , |
| IteratorAfterRemoval | |||
| ) |
Definition at line 800 of file rand-tree.cc.
References Aleph::BinNodeInfixIterator< Node >::has_curr(), Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::insert(), KEY, Aleph::maps(), and Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::remove().
| TEST | ( | RandTree | , |
| IteratorOnEmptyTree | |||
| ) |
Definition at line 792 of file rand-tree.cc.
References Aleph::BinNodeInfixIterator< Node >::has_curr(), and Aleph::maps().
| TEST | ( | RandTree | , |
| IteratorTraversesInOrder | |||
| ) |
Definition at line 777 of file rand-tree.cc.
References Aleph::BinNodeInfixIterator< Node >::has_curr(), Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::insert(), KEY, and Aleph::maps().
| TEST | ( | RandTree | , |
| JoinDup | |||
| ) |
Definition at line 732 of file rand-tree.cc.
References Aleph::DynList< T >::insert(), Aleph::maps(), and Aleph::HTList::size().
| TEST | ( | RandTree | , |
| JoinExclusive | |||
| ) |
Definition at line 750 of file rand-tree.cc.
References Aleph::DynList< T >::insert(), Aleph::maps(), and Aleph::HTList::size().
| TEST | ( | RandTree | , |
| JoinWithDuplicates | |||
| ) |
Definition at line 706 of file rand-tree.cc.
References StlAlephIterator< SetName >::begin(), StlAlephIterator< SetName >::end(), Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::getRoot(), Aleph::DynList< T >::insert(), Aleph::maps(), Aleph::HTList::size(), and Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::size().
| TEST | ( | RandTree | , |
| JoinWithNoDuplicates | |||
| ) |
Definition at line 683 of file rand-tree.cc.
References Aleph::DynList< T >::insert(), Aleph::maps(), Aleph::HTList::size(), and Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::size().
| TEST | ( | RandTree | , |
| KeyCompAndGetCompare | |||
| ) |
Definition at line 1111 of file rand-tree.cc.
References Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::get_compare(), Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::key_comp(), and Aleph::maps().
| TEST | ( | RandTree | , |
| LargeTreeOperations | |||
| ) |
Definition at line 1016 of file rand-tree.cc.
References Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::insert(), KEY, Aleph::maps(), N, Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::remove(), Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::search(), Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::select(), Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::size(), and Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::verify().
| TEST | ( | RandTree | , |
| NegativeKeys | |||
| ) |
Definition at line 909 of file rand-tree.cc.
References Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::getRoot(), Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::insert(), Aleph::maps(), Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::search(), Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::size(), and Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::verify().
| TEST | ( | RandTree | , |
| PositionOfExistingKey | |||
| ) |
Definition at line 446 of file rand-tree.cc.
References Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::insert(), KEY, Aleph::maps(), and Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::position().
| TEST | ( | RandTree | , |
| PositionOfMissingKey | |||
| ) |
Definition at line 468 of file rand-tree.cc.
References Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::insert(), Aleph::maps(), and Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::position().
| TEST | ( | RandTree | , |
| RandomInsertSearchRemove | |||
| ) |
Definition at line 956 of file rand-tree.cc.
References StlAlephIterator< SetName >::begin(), StlAlephIterator< SetName >::end(), Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::getRoot(), Aleph::DynList< T >::insert(), Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::insert(), Aleph::maps(), Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::remove(), rng, Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::search(), Aleph::HTList::size(), Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::size(), and Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::verify().
| TEST | ( | RandTree | , |
| RemoveAllElements | |||
| ) |
Definition at line 352 of file rand-tree.cc.
References Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::insert(), Aleph::maps(), Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::remove(), Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::size(), and Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::verify().
| TEST | ( | RandTree | , |
| RemoveExistingKey | |||
| ) |
Definition at line 297 of file rand-tree.cc.
References Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::getRoot(), Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::insert(), KEY, Aleph::maps(), Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::remove(), Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::search(), Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::size(), and Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::verify().
| TEST | ( | RandTree | , |
| RemoveFromEmptyTreeReturnsNull | |||
| ) |
Definition at line 122 of file rand-tree.cc.
References Aleph::maps(), Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::remove(), and Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::size().
| TEST | ( | RandTree | , |
| RemoveInOrder | |||
| ) |
Definition at line 372 of file rand-tree.cc.
References Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::insert(), Aleph::maps(), Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::remove(), Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::size(), and Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::verify().
| TEST | ( | RandTree | , |
| RemoveInReverseOrder | |||
| ) |
Definition at line 392 of file rand-tree.cc.
References Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::insert(), Aleph::maps(), Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::remove(), Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::size(), and Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::verify().
| TEST | ( | RandTree | , |
| RemovePosFirst | |||
| ) |
Definition at line 558 of file rand-tree.cc.
References Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::insert(), KEY, Aleph::maps(), Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::remove_pos(), and Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::size().
| TEST | ( | RandTree | , |
| RemovePosLast | |||
| ) |
Definition at line 576 of file rand-tree.cc.
References Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::insert(), KEY, Aleph::maps(), Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::remove_pos(), and Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::size().
| TEST | ( | RandTree | , |
| RemovePosValidPosition | |||
| ) |
Definition at line 538 of file rand-tree.cc.
References Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::insert(), KEY, Aleph::maps(), Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::remove_pos(), Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::size(), and Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::verify().
| TEST | ( | RandTree | , |
| RemoveReturnsNullForMissingKey | |||
| ) |
Definition at line 320 of file rand-tree.cc.
References Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::insert(), Aleph::maps(), Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::remove(), and Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::size().
| TEST | ( | RandTree | , |
| RemoveRoot | |||
| ) |
Definition at line 332 of file rand-tree.cc.
References Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::insert(), KEY, Aleph::maps(), Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::remove(), root(), Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::size(), and Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::verify().
| TEST | ( | RandTree | , |
| SearchFindsExistingKey | |||
| ) |
Definition at line 230 of file rand-tree.cc.
References Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::insert(), KEY, Aleph::maps(), and Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::search().
| TEST | ( | RandTree | , |
| SearchOnEmptyTreeReturnsNull | |||
| ) |
Definition at line 113 of file rand-tree.cc.
References Aleph::maps(), and Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::search().
| TEST | ( | RandTree | , |
| SearchOrInsertInsertsNew | |||
| ) |
Definition at line 278 of file rand-tree.cc.
References Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::insert(), Aleph::maps(), Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::search(), Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::search_or_insert(), and Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::size().
| TEST | ( | RandTree | , |
| SearchOrInsertReturnsExisting | |||
| ) |
Definition at line 260 of file rand-tree.cc.
References Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::insert(), Aleph::maps(), Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::search_or_insert(), and Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::size().
| TEST | ( | RandTree | , |
| SearchReturnsNullForMissingKey | |||
| ) |
Definition at line 246 of file rand-tree.cc.
References Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::insert(), Aleph::maps(), and Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::search().
| TEST | ( | RandTree | , |
| SeedAffectsStructure | |||
| ) |
Definition at line 846 of file rand-tree.cc.
References Aleph::DynList< T >::insert(), Aleph::maps(), and Aleph::HTList::size().
| TEST | ( | RandTree | , |
| SelectOutOfRangeThrows | |||
| ) |
Definition at line 434 of file rand-tree.cc.
References Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::insert(), Aleph::maps(), and Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::select().
| TEST | ( | RandTree | , |
| SelectReturnsCorrectNode | |||
| ) |
Definition at line 416 of file rand-tree.cc.
References Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::insert(), KEY, Aleph::maps(), and Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::select().
| TEST | ( | RandTree | , |
| SetSeedChangesSequence | |||
| ) |
Definition at line 1133 of file rand-tree.cc.
References Aleph::DynList< T >::insert(), Aleph::maps(), and Aleph::HTList::size().
| TEST | ( | RandTree | , |
| SingleElementOperations | |||
| ) |
Definition at line 929 of file rand-tree.cc.
References Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::insert(), KEY, Aleph::maps(), Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::position(), Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::remove(), Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::select(), and Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::size().
| TEST | ( | RandTree | , |
| SplitKeyDup | |||
| ) |
Definition at line 638 of file rand-tree.cc.
References Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::insert(), Aleph::maps(), and Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::split_key_dup().
| TEST | ( | RandTree | , |
| SplitKeyInTree | |||
| ) |
Definition at line 624 of file rand-tree.cc.
References Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::insert(), Aleph::maps(), and Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::split_key().
| TEST | ( | RandTree | , |
| SplitKeyNotInTree | |||
| ) |
Definition at line 602 of file rand-tree.cc.
References Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::insert(), Aleph::maps(), and Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::split_key().
| TEST | ( | RandTree | , |
| SplitPos | |||
| ) |
Definition at line 658 of file rand-tree.cc.
References Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::insert(), Aleph::maps(), and Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::split_pos().
| TEST | ( | RandTree | , |
| SwapTrees | |||
| ) |
Definition at line 823 of file rand-tree.cc.
References Aleph::DynList< T >::insert(), Aleph::maps(), Aleph::HTList::size(), and Aleph::DynList< T >::swap().
| TEST | ( | RandTree | , |
| VerifyDetectsValidTree | |||
| ) |
Definition at line 1077 of file rand-tree.cc.
References Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::insert(), Aleph::maps(), Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::remove(), and Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::verify().
| TEST | ( | RandTreeVtl | , |
| BasicOperations | |||
| ) |
Definition at line 1055 of file rand-tree.cc.
References Aleph::maps().