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

Tests for Dynliststack. More...

#include <gtest/gtest.h>
#include <tpl_dynListStack.H>
Include dependency graph for dynliststack.cc:

Go to the source code of this file.

Classes

struct  SimpleStack
 Fixture with a stack of integers. More...
 
struct  ComplexStack
 Fixture with a stack of complex objects (DynList<int>) More...
 

Functions

 TEST (DynListStack, empty_stack)
 
 TEST_F (SimpleStack, push_pop)
 
 TEST_F (ComplexStack, push_pop)
 
 TEST (DynListStack, Iterator_on_empty_stack)
 
 TEST_F (SimpleStack, Iterator)
 
 TEST_F (ComplexStack, Iterator)
 
 TEST_F (SimpleStack, copy_operations)
 
 TEST_F (ComplexStack, copy_operations)
 
 TEST_F (SimpleStack, traverse)
 
 TEST_F (ComplexStack, traverse)
 

Variables

constexpr size_t N = 17
 

Detailed Description

Tests for Dynliststack.

Definition in file dynliststack.cc.

Function Documentation

◆ TEST() [1/2]

◆ TEST() [2/2]

TEST ( DynListStack  ,
Iterator_on_empty_stack   
)

Definition at line 186 of file dynliststack.cc.

References LocateFunctions< Container, Type >::get_it(), and Aleph::maps().

◆ TEST_F() [1/8]

TEST_F ( ComplexStack  ,
copy_operations   
)

◆ TEST_F() [2/8]

TEST_F ( ComplexStack  ,
Iterator   
)

Definition at line 202 of file dynliststack.cc.

References Aleph::maps().

◆ TEST_F() [3/8]

◆ TEST_F() [4/8]

◆ TEST_F() [5/8]

TEST_F ( SimpleStack  ,
copy_operations   
)

◆ TEST_F() [6/8]

TEST_F ( SimpleStack  ,
Iterator   
)

Definition at line 195 of file dynliststack.cc.

References Aleph::maps().

◆ TEST_F() [7/8]

TEST_F ( SimpleStack  ,
push_pop   
)

Definition at line 79 of file dynliststack.cc.

References Aleph::maps().

◆ TEST_F() [8/8]

TEST_F ( SimpleStack  ,
traverse   
)

Definition at line 309 of file dynliststack.cc.

References Aleph::maps(), N, and GenericTraverse< Container >::traverse().

Variable Documentation

◆ N

constexpr size_t N = 17
constexpr

Definition at line 47 of file dynliststack.cc.

Referenced by TEST_F(), and TEST_F().