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

Tests for Snodenc. More...

#include <string>
#include <utility>
#include <gtest/gtest.h>
#include <htlist.H>
Include dependency graph for snodenc.cc:

Go to the source code of this file.

Classes

struct  List_of_5_nodes
 

Concepts

concept  Has_Get_First
 

Functions

 TEST (Snodenc, conversion_from_slinknc)
 
 TEST_F (List_of_5_nodes, Basic_operations)
 
 TEST (Snodenc, get_first_of_a_lone_node_is_null)
 
 TEST (Snodenc, get_first_returns_the_following_node)
 
 TEST (Snodenc, get_first_is_a_reference_to_the_link)
 

Detailed Description

Tests for Snodenc.

Definition in file snodenc.cc.

Function Documentation

◆ TEST() [1/4]

TEST ( Snodenc  ,
conversion_from_slinknc   
)

Definition at line 82 of file snodenc.cc.

References Aleph::Slinknc::to_data(), and Aleph::Slinknc::to_snodenc().

◆ TEST() [2/4]

TEST ( Snodenc  ,
get_first_is_a_reference_to_the_link   
)

◆ TEST() [3/4]

TEST ( Snodenc  ,
get_first_of_a_lone_node_is_null   
)

Definition at line 117 of file snodenc.cc.

References Aleph::Snodenc< T >::get_first().

◆ TEST() [4/4]

TEST ( Snodenc  ,
get_first_returns_the_following_node   
)

◆ TEST_F()

TEST_F ( List_of_5_nodes  ,
Basic_operations   
)

Definition at line 99 of file snodenc.cc.

References Aleph::Slinknc::next.