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

Tests for Bin Node. More...

#include <gtest/gtest.h>
#include <string>
#include <htlist.H>
#include <tpl_binNode.H>
Include dependency graph for bin-node.cc:

Go to the source code of this file.

Classes

class  TestSentinelNode< Key >
 
class  TestSentinelNodeVtl< Key >
 

Functions

 TEST (BinNode, single_node)
 
 TEST (BinNode, default_constructor_sets_null_links)
 
 TEST (BinNode, reset_restores_links_to_null)
 
 TEST (BinNode, helpers_work_with_const_nodes)
 
 TEST (BinNode, node_traits_provide_generic_access)
 
 TEST (BinNode, move_constructor_moves_key_and_preserves_null_links)
 
 TEST (BinNode, key_to_node_returns_container_node)
 
 TEST (BinNodeSentinel, nullptr_is_sentinel_address)
 
 TEST (BinNode, incomplete_node_left)
 
 TEST (BinNode, incomplete_node_right)
 

Detailed Description

Tests for Bin Node.

Definition in file bin-node.cc.

Function Documentation

◆ TEST() [1/10]

TEST ( BinNode  ,
default_constructor_sets_null_links   
)

◆ TEST() [2/10]

TEST ( BinNode  ,
helpers_work_with_const_nodes   
)

Definition at line 108 of file bin-node.cc.

References KEY, Aleph::LLINK(), Aleph::maps(), and Aleph::RLINK().

◆ TEST() [3/10]

TEST ( BinNode  ,
incomplete_node_left   
)

◆ TEST() [4/10]

TEST ( BinNode  ,
incomplete_node_right   
)

◆ TEST() [5/10]

TEST ( BinNode  ,
key_to_node_returns_container_node   
)

Definition at line 142 of file bin-node.cc.

References Aleph::BinNode< Key >::get_key(), and Aleph::maps().

◆ TEST() [6/10]

TEST ( BinNode  ,
move_constructor_moves_key_and_preserves_null_links   
)

◆ TEST() [7/10]

TEST ( BinNode  ,
node_traits_provide_generic_access   
)

Definition at line 116 of file bin-node.cc.

References Aleph::maps().

◆ TEST() [8/10]

TEST ( BinNode  ,
reset_restores_links_to_null   
)

◆ TEST() [9/10]

TEST ( BinNode  ,
single_node   
)

◆ TEST() [10/10]

TEST ( BinNodeSentinel  ,
nullptr_is_sentinel_address   
)

Definition at line 150 of file bin-node.cc.

References Aleph::LLINK(), Aleph::maps(), N, and Aleph::RLINK().