Aleph-w 7.10.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 <stdexcept>
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)
 
 TEST (DynListStack, AMoveThatThrowsLeavesTheItemInTheStack)
 
 TEST (DynListStack, ADeleteThroughTheIteratorLowersTheSize)
 

Variables

constexpr size_t N = 17
 

Detailed Description

Tests for Dynliststack.

Definition in file dynliststack.cc.

Function Documentation

◆ TEST() [1/4]

◆ TEST() [2/4]

◆ TEST() [3/4]

◆ TEST() [4/4]

TEST ( DynListStack  ,
Iterator_on_empty_stack   
)

Definition at line 187 of file dynliststack.cc.

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

◆ TEST_F() [1/8]

◆ TEST_F() [2/8]

TEST_F ( ComplexStack  ,
Iterator   
)

Definition at line 203 of file dynliststack.cc.

◆ 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 196 of file dynliststack.cc.

◆ TEST_F() [7/8]

TEST_F ( SimpleStack  ,
push_pop   
)

Definition at line 80 of file dynliststack.cc.

References m.

◆ TEST_F() [8/8]

TEST_F ( SimpleStack  ,
traverse   
)

Definition at line 310 of file dynliststack.cc.

References k.

Variable Documentation

◆ N

constexpr size_t N = 17
constexpr

Definition at line 48 of file dynliststack.cc.