|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Tests for Splay Tree. More...
Go to the source code of this file.
Functions | |
| TEST (SplayTree, EmptyTreeProperties) | |
| TEST (SplayTree, InsertSingleElementBecomesRoot) | |
| TEST (SplayTree, InsertRejectsDuplicates) | |
| TEST (SplayTree, InsertDupAllowsDuplicates) | |
| TEST (SplayTree, SearchFindsExistingKeyAndSplaysToRoot) | |
| TEST (SplayTree, SearchMissingSplaysToExtreme) | |
| TEST (SplayTree, SearchOrInsertDoesNotInsertDuplicate) | |
| TEST (SplayTree, RemoveExistingKeyDetachesNode) | |
| TEST (SplayTree, RemoveSplaysMaxOfLeftSubtree) | |
| TEST (SplayTree, StatefulComparatorAffectsEquality) | |
Tests for Splay Tree.
Definition in file splay-tree.cc.
| TEST | ( | SplayTree | , |
| EmptyTreeProperties | |||
| ) |
| TEST | ( | SplayTree | , |
| InsertDupAllowsDuplicates | |||
| ) |
Definition at line 170 of file splay-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 | ( | SplayTree | , |
| InsertRejectsDuplicates | |||
| ) |
Definition at line 152 of file splay-tree.cc.
References Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::getRoot(), Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::insert(), and Aleph::maps().
| TEST | ( | SplayTree | , |
| InsertSingleElementBecomesRoot | |||
| ) |
Definition at line 137 of file splay-tree.cc.
References Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::getRoot(), Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::insert(), and Aleph::maps().
| TEST | ( | SplayTree | , |
| RemoveExistingKeyDetachesNode | |||
| ) |
Definition at line 246 of file splay-tree.cc.
References Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::getRoot(), inorder_keys(), Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::insert(), KEY, Aleph::LLINK(), Aleph::maps(), Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::remove(), Aleph::RLINK(), and Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::search().
| TEST | ( | SplayTree | , |
| RemoveSplaysMaxOfLeftSubtree | |||
| ) |
Definition at line 273 of file splay-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 | ( | SplayTree | , |
| SearchFindsExistingKeyAndSplaysToRoot | |||
| ) |
Definition at line 188 of file splay-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 >::search().
| TEST | ( | SplayTree | , |
| SearchMissingSplaysToExtreme | |||
| ) |
Definition at line 206 of file splay-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 >::search().
| TEST | ( | SplayTree | , |
| SearchOrInsertDoesNotInsertDuplicate | |||
| ) |
Definition at line 227 of file splay-tree.cc.
References Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::getRoot(), Aleph::maps(), and Aleph::Gen_Rand_Tree< NodeType, Key, Compare >::search_or_insert().
| TEST | ( | SplayTree | , |
| StatefulComparatorAffectsEquality | |||
| ) |
Definition at line 294 of file splay-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 >::search().