|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Tests for Rb Tree. More...
#include <algorithm>#include <cmath>#include <random>#include <set>#include <vector>#include <functional>#include <gtest/gtest.h>#include <tpl_rb_tree.H>#include <tpl_hRbTree.H>Go to the source code of this file.
Functions | |
| TEST (RbTree, EmptyTreeProperties) | |
| TEST (RbTree, InsertSingleElement) | |
| TEST (RbTree, InsertMultipleElements) | |
| TEST (RbTree, InsertRejectsDuplicates) | |
| TEST (RbTree, DuplicateAtIntermediateLevel) | |
| TEST (RbTree, DuplicateAfterOnlyLeftDescents) | |
| TEST (RbTree, DuplicateDeepInTree) | |
| TEST (RbTree, InsertDupAllowsDuplicates) | |
| TEST (RbTree, SearchFindsExistingKey) | |
| TEST (RbTree, SearchReturnsNullForMissingKey) | |
| TEST (RbTree, SearchOrInsertBehavior) | |
| TEST (RbTree, RemoveExistingKey) | |
| TEST (RbTree, RemoveReturnsNullForMissingKey) | |
| TEST (RbTree, RemoveFromEmptyTree) | |
| TEST (RbTree, RemoveRoot) | |
| TEST (RbTree, RemoveAllElements) | |
| TEST (RbTree, RemoveInOrder) | |
| TEST (RbTree, RemoveInReverseOrder) | |
| TEST (RbTree, RemoveDuplicatesInsertedWithInsertDup) | |
| TEST (RbTree, TreeRemainsValidAfterMultipleInserts) | |
| TEST (RbTree, NoConsecutiveReds) | |
| TEST (RbTree, BlackHeightConsistent) | |
| TEST (RbTree, SingleElementOperations) | |
| TEST (RbTree, InsertInDescendingOrder) | |
| TEST (RbTree, InsertInAscendingOrder) | |
| TEST (RbTree, CustomComparatorGreater) | |
| TEST (RbTree, RandomInsertSearchRemove) | |
| TEST (RbTree, LargeTreeOperations) | |
| TEST (RbTree, IteratorEmptyTree) | |
| TEST (RbTree, IteratorTraversesInOrder) | |
| TEST (RbTree, IteratorAfterRemoval) | |
| TEST (RbTree, VerifyDetectsValidTree) | |
| TEST (RbTree, IsEmptyMethod) | |
| TEST (RbTree, SizeMethod) | |
| TEST (RbTree, SwapTrees) | |
| TEST (RbTree, MoveConstructor) | |
| TEST (RbTree, MoveAssignment) | |
| TEST (HtdRbTreeCompat, EmptyTreeProperties) | |
| TEST (HtdRbTreeCompat, InsertRejectsDuplicates) | |
| TEST (HtdRbTreeCompat, InsertDupAllowsDuplicates) | |
| TEST (HtdRbTreeCompat, SearchOrInsertBehavior) | |
| TEST (HtdRbTreeCompat, RemoveExistingKey) | |
| TEST (HtdRbTreeCompat, RemoveFromSingleElementTree) | |
| TEST (HtdRbTreeCompat, RemoveAllElementsInOrder) | |
| TEST (HtdRbTreeCompat, RemoveReturnsNullForMissingKey) | |
| TEST (HtdRbTreeCompat, RemoveDuplicatesInsertedWithInsertDup) | |
| TEST (HtdRbTreeCompat, IteratorTraversesInOrder) | |
| TEST (HtdRbTreeCompat, IteratorEmptyTree) | |
| TEST (HtdRbTreeCompat, SwapTrees) | |
| TEST (HtdRbTreeCompat, StatefulComparatorAffectsEquality) | |
| TEST (HtdRbTreeCompat, NegativeKeys) | |
| TEST (HtdRbTreeCompat, RandomInsertSearchRemove) | |
| TEST (HtdRbTreeCompat, InsertSingleElement) | |
| TEST (HtdRbTreeCompat, InsertMultipleElements) | |
| TEST (HtdRbTreeCompat, SearchFindsExistingKey) | |
| TEST (HtdRbTreeCompat, SearchReturnsNullForMissingKey) | |
| TEST (HtdRbTreeCompat, RemoveFromEmptyTree) | |
| TEST (HtdRbTreeCompat, RemoveRoot) | |
| TEST (HtdRbTreeCompat, RemoveInReverseOrder) | |
| TEST (HtdRbTreeCompat, InsertInDescendingOrder) | |
| TEST (HtdRbTreeCompat, InsertInAscendingOrder) | |
| TEST (HtdRbTreeCompat, LargeTreeOperations) | |
| TEST (HtdRbTreeCompat, CustomComparatorGreater) | |
| TEST (HtdRbTreeCompat, IteratorAfterRemoval) | |
| TEST (HtdRbTreeCompat, MoveConstructor) | |
| TEST (HtdRbTreeCompat, MoveAssignment) | |
| TEST (RbTreeVtl, BasicOperations) | |
| TEST (RbTree, NegativeKeys) | |
| TEST (RbTree, CustomComparatorWithRemove) | |
| TEST (RbTree, Stress_AscendingInsertion) | |
| TEST (RbTree, Stress_DescendingInsertion) | |
| TEST (RbTree, Stress_ZigzagInsertion) | |
| TEST (RbTree, Fuzz_LargeScaleRandomOps) | |
| TEST (RbTree, Stress_BulkInsertBulkRemove) | |
| TEST (RbTree, Stress_ManyDuplicates) | |
| TEST (RbTree, Stress_AlternatingInsertRemove) | |
| TEST (RbTree, Stress_StringKeys) | |
| TEST (HtdRbTreeCompat, Stress_LargeScaleOps) | |
Tests for Rb Tree.
Definition in file rb-tree.cc.
| TEST | ( | HtdRbTreeCompat | , |
| CustomComparatorGreater | |||
| ) |
Definition at line 1453 of file rb-tree.cc.
References Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::insert(), KEY, and Aleph::maps().
| TEST | ( | HtdRbTreeCompat | , |
| EmptyTreeProperties | |||
| ) |
Definition at line 957 of file rb-tree.cc.
References Aleph::check_bst(), and Aleph::maps().
| TEST | ( | HtdRbTreeCompat | , |
| InsertDupAllowsDuplicates | |||
| ) |
Definition at line 985 of file rb-tree.cc.
References Aleph::check_bst(), and Aleph::maps().
| TEST | ( | HtdRbTreeCompat | , |
| InsertInAscendingOrder | |||
| ) |
Definition at line 1412 of file rb-tree.cc.
References Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::insert(), and Aleph::maps().
| TEST | ( | HtdRbTreeCompat | , |
| InsertInDescendingOrder | |||
| ) |
Definition at line 1397 of file rb-tree.cc.
References Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::insert(), and Aleph::maps().
| TEST | ( | HtdRbTreeCompat | , |
| InsertMultipleElements | |||
| ) |
Definition at line 1301 of file rb-tree.cc.
References Aleph::maps().
| TEST | ( | HtdRbTreeCompat | , |
| InsertRejectsDuplicates | |||
| ) |
Definition at line 968 of file rb-tree.cc.
References Aleph::check_bst(), and Aleph::maps().
| TEST | ( | HtdRbTreeCompat | , |
| InsertSingleElement | |||
| ) |
Definition at line 1286 of file rb-tree.cc.
References Aleph::DynList< T >::insert(), and Aleph::maps().
| TEST | ( | HtdRbTreeCompat | , |
| IteratorAfterRemoval | |||
| ) |
Definition at line 1478 of file rb-tree.cc.
References Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::insert(), KEY, Aleph::maps(), and Aleph::DynList< T >::remove().
| TEST | ( | HtdRbTreeCompat | , |
| IteratorEmptyTree | |||
| ) |
Definition at line 1134 of file rb-tree.cc.
References Aleph::maps().
| TEST | ( | HtdRbTreeCompat | , |
| IteratorTraversesInOrder | |||
| ) |
Definition at line 1117 of file rb-tree.cc.
References Aleph::DynList< T >::insert(), KEY, and Aleph::maps().
| TEST | ( | HtdRbTreeCompat | , |
| LargeTreeOperations | |||
| ) |
Definition at line 1427 of file rb-tree.cc.
References Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::insert(), Aleph::maps(), N, and Aleph::DynList< T >::remove().
| TEST | ( | HtdRbTreeCompat | , |
| MoveAssignment | |||
| ) |
Definition at line 1518 of file rb-tree.cc.
References Aleph::DynList< T >::insert(), Aleph::HTList::is_empty(), Aleph::maps(), Aleph::DynList< T >::remove(), and Aleph::HTList::size().
| TEST | ( | HtdRbTreeCompat | , |
| MoveConstructor | |||
| ) |
Definition at line 1497 of file rb-tree.cc.
References Aleph::DynList< T >::insert(), Aleph::HTList::is_empty(), Aleph::maps(), Aleph::DynList< T >::remove(), and Aleph::HTList::size().
| TEST | ( | HtdRbTreeCompat | , |
| NegativeKeys | |||
| ) |
Definition at line 1198 of file rb-tree.cc.
References Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::insert(), and Aleph::maps().
| TEST | ( | HtdRbTreeCompat | , |
| RandomInsertSearchRemove | |||
| ) |
Definition at line 1217 of file rb-tree.cc.
References StlAlephIterator< SetName >::begin(), StlAlephIterator< SetName >::end(), Aleph::DynList< T >::insert(), KEY, Aleph::maps(), Aleph::DynList< T >::remove(), rng, and Aleph::HTList::size().
| TEST | ( | HtdRbTreeCompat | , |
| RemoveAllElementsInOrder | |||
| ) |
Definition at line 1056 of file rb-tree.cc.
References Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::insert(), Aleph::maps(), and Aleph::DynList< T >::remove().
| TEST | ( | HtdRbTreeCompat | , |
| RemoveDuplicatesInsertedWithInsertDup | |||
| ) |
Definition at line 1092 of file rb-tree.cc.
References KEY, Aleph::maps(), and Aleph::DynList< T >::remove().
| TEST | ( | HtdRbTreeCompat | , |
| RemoveExistingKey | |||
| ) |
Definition at line 1019 of file rb-tree.cc.
References Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::insert(), KEY, Aleph::maps(), and Aleph::DynList< T >::remove().
| TEST | ( | HtdRbTreeCompat | , |
| RemoveFromEmptyTree | |||
| ) |
Definition at line 1350 of file rb-tree.cc.
References Aleph::maps().
| TEST | ( | HtdRbTreeCompat | , |
| RemoveFromSingleElementTree | |||
| ) |
Definition at line 1038 of file rb-tree.cc.
References Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::insert(), KEY, Aleph::maps(), and Aleph::DynList< T >::remove().
| TEST | ( | HtdRbTreeCompat | , |
| RemoveInReverseOrder | |||
| ) |
Definition at line 1377 of file rb-tree.cc.
References Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::insert(), Aleph::maps(), and Aleph::DynList< T >::remove().
| TEST | ( | HtdRbTreeCompat | , |
| RemoveReturnsNullForMissingKey | |||
| ) |
Definition at line 1078 of file rb-tree.cc.
References Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::insert(), and Aleph::maps().
| TEST | ( | HtdRbTreeCompat | , |
| RemoveRoot | |||
| ) |
Definition at line 1358 of file rb-tree.cc.
References Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::insert(), KEY, Aleph::maps(), and Aleph::DynList< T >::remove().
| TEST | ( | HtdRbTreeCompat | , |
| SearchFindsExistingKey | |||
| ) |
Definition at line 1316 of file rb-tree.cc.
References Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::insert(), KEY, and Aleph::maps().
| TEST | ( | HtdRbTreeCompat | , |
| SearchOrInsertBehavior | |||
| ) |
Definition at line 999 of file rb-tree.cc.
References Aleph::check_bst(), KEY, and Aleph::maps().
| TEST | ( | HtdRbTreeCompat | , |
| SearchReturnsNullForMissingKey | |||
| ) |
Definition at line 1334 of file rb-tree.cc.
References Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::insert(), and Aleph::maps().
| TEST | ( | HtdRbTreeCompat | , |
| StatefulComparatorAffectsEquality | |||
| ) |
Definition at line 1173 of file rb-tree.cc.
References Aleph::check_bst(), Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::getRoot(), Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::insert(), Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::key_comp(), Aleph::maps(), Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::remove(), Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::search(), and Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::verify().
| TEST | ( | HtdRbTreeCompat | , |
| Stress_LargeScaleOps | |||
| ) |
Definition at line 1884 of file rb-tree.cc.
References StlAlephIterator< SetName >::begin(), Aleph::DynList< T >::empty(), Aleph::DynList< T >::insert(), Aleph::maps(), Aleph::DynList< T >::remove(), and Aleph::HTList::size().
| TEST | ( | HtdRbTreeCompat | , |
| SwapTrees | |||
| ) |
Definition at line 1142 of file rb-tree.cc.
References Aleph::DynList< T >::insert(), Aleph::maps(), Aleph::HTList::size(), and Aleph::DynList< T >::swap().
| TEST | ( | RbTree | , |
| BlackHeightConsistent | |||
| ) |
Definition at line 567 of file rb-tree.cc.
References Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::insert(), Aleph::maps(), and rng.
| TEST | ( | RbTree | , |
| CustomComparatorGreater | |||
| ) |
Definition at line 640 of file rb-tree.cc.
References KEY, Aleph::LLINK(), Aleph::maps(), nodes, and Aleph::RLINK().
| TEST | ( | RbTree | , |
| CustomComparatorWithRemove | |||
| ) |
Definition at line 1589 of file rb-tree.cc.
References Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::insert(), Aleph::maps(), and Aleph::DynList< T >::remove().
| TEST | ( | RbTree | , |
| DuplicateAfterOnlyLeftDescents | |||
| ) |
Definition at line 266 of file rb-tree.cc.
References Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::getRoot(), Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::insert(), and Aleph::maps().
| TEST | ( | RbTree | , |
| DuplicateAtIntermediateLevel | |||
| ) |
Definition at line 243 of file rb-tree.cc.
References Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::getRoot(), Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::insert(), and Aleph::maps().
| TEST | ( | RbTree | , |
| DuplicateDeepInTree | |||
| ) |
Definition at line 288 of file rb-tree.cc.
References Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::getRoot(), Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::insert(), and Aleph::maps().
| TEST | ( | RbTree | , |
| EmptyTreeProperties | |||
| ) |
Definition at line 183 of file rb-tree.cc.
References Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::getRoot(), Aleph::maps(), Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::search(), and Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::verify().
| TEST | ( | RbTree | , |
| Fuzz_LargeScaleRandomOps | |||
| ) |
Definition at line 1679 of file rb-tree.cc.
References StlAlephIterator< SetName >::begin(), Aleph::DynList< T >::empty(), StlAlephIterator< SetName >::end(), Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::getRoot(), inorder_keys(), Aleph::DynList< T >::insert(), 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 >::search(), Aleph::HTList::size(), and Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::size().
| TEST | ( | RbTree | , |
| InsertDupAllowsDuplicates | |||
| ) |
Definition at line 309 of file rb-tree.cc.
References Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::getRoot(), inorder_keys(), Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::insert_dup(), and Aleph::maps().
| TEST | ( | RbTree | , |
| InsertInAscendingOrder | |||
| ) |
Definition at line 621 of file rb-tree.cc.
References Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::getRoot(), inorder_keys(), Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::insert(), and Aleph::maps().
| TEST | ( | RbTree | , |
| InsertInDescendingOrder | |||
| ) |
Definition at line 606 of file rb-tree.cc.
References Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::getRoot(), inorder_keys(), Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::insert(), and Aleph::maps().
| TEST | ( | RbTree | , |
| InsertMultipleElements | |||
| ) |
Definition at line 207 of file rb-tree.cc.
References Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::getRoot(), inorder_keys(), Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::insert(), and Aleph::maps().
| TEST | ( | RbTree | , |
| InsertRejectsDuplicates | |||
| ) |
Definition at line 225 of file rb-tree.cc.
References Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::getRoot(), Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::insert(), and Aleph::maps().
| TEST | ( | RbTree | , |
| InsertSingleElement | |||
| ) |
Definition at line 192 of file rb-tree.cc.
References Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::getRoot(), Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::insert(), and Aleph::maps().
| TEST | ( | RbTree | , |
| IsEmptyMethod | |||
| ) |
Definition at line 842 of file rb-tree.cc.
References Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::insert(), Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::is_empty(), Aleph::maps(), and Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::remove().
| TEST | ( | RbTree | , |
| IteratorAfterRemoval | |||
| ) |
Definition at line 804 of file rb-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 | ( | RbTree | , |
| IteratorEmptyTree | |||
| ) |
Definition at line 780 of file rb-tree.cc.
References Aleph::BinNodeInfixIterator< Node >::has_curr(), and Aleph::maps().
| TEST | ( | RbTree | , |
| IteratorTraversesInOrder | |||
| ) |
Definition at line 788 of file rb-tree.cc.
References Aleph::BinNodeInfixIterator< Node >::has_curr(), Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::insert(), KEY, and Aleph::maps().
| TEST | ( | RbTree | , |
| LargeTreeOperations | |||
| ) |
Definition at line 749 of file rb-tree.cc.
References Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::getRoot(), Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::insert(), Aleph::maps(), N, and Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::remove().
| TEST | ( | RbTree | , |
| MoveAssignment | |||
| ) |
Definition at line 934 of file rb-tree.cc.
References Aleph::DynList< T >::insert(), Aleph::HTList::is_empty(), Aleph::maps(), Aleph::DynList< T >::remove(), and Aleph::HTList::size().
| TEST | ( | RbTree | , |
| MoveConstructor | |||
| ) |
Definition at line 912 of file rb-tree.cc.
References Aleph::DynList< T >::insert(), Aleph::HTList::is_empty(), Aleph::maps(), Aleph::DynList< T >::remove(), and Aleph::HTList::size().
| TEST | ( | RbTree | , |
| NegativeKeys | |||
| ) |
Definition at line 1571 of file rb-tree.cc.
References Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::getRoot(), inorder_keys(), Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::insert(), Aleph::maps(), Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::search(), and Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::size().
| TEST | ( | RbTree | , |
| NoConsecutiveReds | |||
| ) |
Definition at line 554 of file rb-tree.cc.
References Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::insert(), and Aleph::maps().
| TEST | ( | RbTree | , |
| RandomInsertSearchRemove | |||
| ) |
Definition at line 678 of file rb-tree.cc.
References StlAlephIterator< SetName >::begin(), StlAlephIterator< SetName >::end(), Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::getRoot(), inorder_keys(), Aleph::DynList< T >::insert(), Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::insert(), KEY, Aleph::maps(), Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::remove(), rng, Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::search(), and Aleph::HTList::size().
| TEST | ( | RbTree | , |
| RemoveAllElements | |||
| ) |
Definition at line 447 of file rb-tree.cc.
References Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::insert(), Aleph::maps(), and Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::remove().
| TEST | ( | RbTree | , |
| RemoveDuplicatesInsertedWithInsertDup | |||
| ) |
Definition at line 508 of file rb-tree.cc.
References Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::getRoot(), Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::insert_dup(), KEY, Aleph::maps(), and Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::remove().
| TEST | ( | RbTree | , |
| RemoveExistingKey | |||
| ) |
Definition at line 383 of file rb-tree.cc.
References Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::getRoot(), inorder_keys(), Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::insert(), KEY, Aleph::maps(), Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::remove(), and Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::search().
| TEST | ( | RbTree | , |
| RemoveFromEmptyTree | |||
| ) |
Definition at line 420 of file rb-tree.cc.
References Aleph::maps(), and Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::remove().
| TEST | ( | RbTree | , |
| RemoveInOrder | |||
| ) |
Definition at line 468 of file rb-tree.cc.
References Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::insert(), Aleph::maps(), and Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::remove().
| TEST | ( | RbTree | , |
| RemoveInReverseOrder | |||
| ) |
Definition at line 488 of file rb-tree.cc.
References Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::insert(), Aleph::maps(), and Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::remove().
| TEST | ( | RbTree | , |
| RemoveReturnsNullForMissingKey | |||
| ) |
Definition at line 405 of file rb-tree.cc.
References Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::getRoot(), Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::insert(), Aleph::maps(), and Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::remove().
| TEST | ( | RbTree | , |
| RemoveRoot | |||
| ) |
Definition at line 428 of file rb-tree.cc.
References Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::getRoot(), Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::insert(), KEY, Aleph::maps(), and Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::remove().
| TEST | ( | RbTree | , |
| SearchFindsExistingKey | |||
| ) |
Definition at line 324 of file rb-tree.cc.
References Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::insert(), KEY, Aleph::maps(), and Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::search().
| TEST | ( | RbTree | , |
| SearchOrInsertBehavior | |||
| ) |
Definition at line 358 of file rb-tree.cc.
References Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::getRoot(), KEY, Aleph::maps(), and Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::search_or_insert().
| TEST | ( | RbTree | , |
| SearchReturnsNullForMissingKey | |||
| ) |
Definition at line 342 of file rb-tree.cc.
References Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::insert(), Aleph::maps(), and Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::search().
| TEST | ( | RbTree | , |
| SingleElementOperations | |||
| ) |
Definition at line 589 of file rb-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 >::search().
| TEST | ( | RbTree | , |
| SizeMethod | |||
| ) |
Definition at line 858 of file rb-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 | ( | RbTree | , |
| Stress_AlternatingInsertRemove | |||
| ) |
Definition at line 1799 of file rb-tree.cc.
References StlAlephIterator< SetName >::begin(), Aleph::DynList< T >::empty(), Aleph::DynList< T >::insert(), Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::insert(), Aleph::maps(), Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::remove(), Aleph::HTList::size(), and Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::size().
| TEST | ( | RbTree | , |
| Stress_AscendingInsertion | |||
| ) |
Definition at line 1623 of file rb-tree.cc.
References Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::insert(), Aleph::maps(), N, Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::search(), and Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::size().
| TEST | ( | RbTree | , |
| Stress_BulkInsertBulkRemove | |||
| ) |
Definition at line 1739 of file rb-tree.cc.
References StlAlephIterator< SetName >::begin(), StlAlephIterator< SetName >::end(), Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::insert(), Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::is_empty(), Aleph::maps(), N, Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::remove(), and Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::size().
| TEST | ( | RbTree | , |
| Stress_DescendingInsertion | |||
| ) |
Definition at line 1645 of file rb-tree.cc.
References Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::insert(), Aleph::maps(), N, and Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::size().
| TEST | ( | RbTree | , |
| Stress_ManyDuplicates | |||
| ) |
Definition at line 1770 of file rb-tree.cc.
References Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::insert_dup(), Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::is_empty(), Aleph::maps(), N, Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::remove(), and Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::size().
| TEST | ( | RbTree | , |
| Stress_StringKeys | |||
| ) |
Definition at line 1842 of file rb-tree.cc.
References Aleph::DynList< T >::insert(), Aleph::maps(), nodes, random_string(), and Aleph::HTList::size().
| TEST | ( | RbTree | , |
| Stress_ZigzagInsertion | |||
| ) |
Definition at line 1662 of file rb-tree.cc.
References Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::insert(), Aleph::maps(), N, and Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::size().
| TEST | ( | RbTree | , |
| SwapTrees | |||
| ) |
Definition at line 884 of file rb-tree.cc.
References inorder_keys(), Aleph::DynList< T >::insert(), Aleph::maps(), and Aleph::DynList< T >::swap().
| TEST | ( | RbTree | , |
| TreeRemainsValidAfterMultipleInserts | |||
| ) |
Definition at line 538 of file rb-tree.cc.
References Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::insert(), and Aleph::maps().
| TEST | ( | RbTree | , |
| VerifyDetectsValidTree | |||
| ) |
Definition at line 827 of file rb-tree.cc.
References Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::insert(), Aleph::maps(), and Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::verify().
| TEST | ( | RbTreeVtl | , |
| BasicOperations | |||
| ) |
Definition at line 1539 of file rb-tree.cc.
References KEY, Aleph::maps(), and Aleph::DynList< T >::remove().