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

The move of each binary search tree takes the nodes of the other tree, which is left empty and usable, with its comparison. More...

#include <gtest/gtest.h>
#include <iterator>
#include <stdexcept>
#include <string>
#include <type_traits>
#include <utility>
#include <tpl_array.H>
#include <tpl_avl.H>
#include <tpl_avlRk.H>
#include <tpl_binNodeUtils.H>
#include <tpl_binTree.H>
#include <tpl_hRbTree.H>
#include <tpl_hRbTreeRk.H>
#include <tpl_rand_tree.H>
#include <tpl_rb_tree.H>
#include <tpl_rbRk.H>
#include <tpl_splay_tree.H>
#include <tpl_splay_treeRk.H>
#include <tpl_tdRbTree.H>
#include <tpl_tdRbTreeRk.H>
#include <tpl_treap.H>
#include <tpl_treapRk.H>
Include dependency graph for tree_moves_test.cc:

Go to the source code of this file.

Functions

 TYPED_TEST (Tree_Move, TakesTheNodesAndLeavesTheOtherTreeEmptyAndUsable)
 
 TYPED_TEST (Tree_Move, OfAnEmptyTreeAndOfOneThatWasMovedFrom)
 
 TYPED_TEST (Tree_Move, BothTreesKeepTheComparison)
 
 TYPED_TEST (Tree_Move, TheComparisonOfTheOtherTreeIsNotMovedFrom)
 
 TYPED_TEST (Tree_Move, ACopyOfTheComparisonThatThrowsLeavesTheOtherTreeAsItWas)
 
 TYPED_TEST (Tree_Move, TheCountsOfTheNodesGoWithThem)
 
 TEST (Tree_Move_Assignment, OfTheRankedSplayTreeExchangesTheTrees)
 
 TEST (Tree_Move_Comparison, CopiedFromOneThatIsNotConst)
 
 TEST (Tree_Move_Comparison, OnlyMoved)
 
 TEST (Tree_Move_Header, TheKeyOfTheOtherHeaderIsTakenOnlyWhenNothingThrows)
 

Detailed Description

The move of each binary search tree takes the nodes of the other tree, which is left empty and usable, with its comparison.

Definition in file tree_moves_test.cc.

Function Documentation

◆ TEST() [1/4]

TEST ( Tree_Move_Assignment  ,
OfTheRankedSplayTreeExchangesTheTrees   
)

Definition at line 520 of file tree_moves_test.cc.

References Aleph::Array< T >::size().

◆ TEST() [2/4]

TEST ( Tree_Move_Comparison  ,
CopiedFromOneThatIsNotConst   
)

Definition at line 632 of file tree_moves_test.cc.

References Aleph::Less.

◆ TEST() [3/4]

TEST ( Tree_Move_Comparison  ,
OnlyMoved   
)

Definition at line 652 of file tree_moves_test.cc.

References Aleph::Less.

◆ TEST() [4/4]

TEST ( Tree_Move_Header  ,
TheKeyOfTheOtherHeaderIsTakenOnlyWhenNothingThrows   
)

Definition at line 681 of file tree_moves_test.cc.

References Aleph::bin_node_detail::header_from().

◆ TYPED_TEST() [1/6]

TYPED_TEST ( Tree_Move  ,
ACopyOfTheComparisonThatThrowsLeavesTheOtherTreeAsItWas   
)

Definition at line 477 of file tree_moves_test.cc.

◆ TYPED_TEST() [2/6]

TYPED_TEST ( Tree_Move  ,
BothTreesKeepTheComparison   
)

Definition at line 434 of file tree_moves_test.cc.

References Aleph::Less, N, and Aleph::Array< T >::size().

◆ TYPED_TEST() [3/6]

TYPED_TEST ( Tree_Move  ,
OfAnEmptyTreeAndOfOneThatWasMovedFrom   
)

Definition at line 424 of file tree_moves_test.cc.

◆ TYPED_TEST() [4/6]

TYPED_TEST ( Tree_Move  ,
TakesTheNodesAndLeavesTheOtherTreeEmptyAndUsable   
)

Definition at line 417 of file tree_moves_test.cc.

◆ TYPED_TEST() [5/6]

TYPED_TEST ( Tree_Move  ,
TheComparisonOfTheOtherTreeIsNotMovedFrom   
)

Definition at line 463 of file tree_moves_test.cc.

◆ TYPED_TEST() [6/6]

TYPED_TEST ( Tree_Move  ,
TheCountsOfTheNodesGoWithThem   
)

Definition at line 497 of file tree_moves_test.cc.

References KEY, and Aleph::Array< T >::size().