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

Tests for Arraystack. More...

#include <gtest/gtest.h>
#include <stdexcept>
#include <string>
#include <utility>
#include <tpl_arrayStack.H>
#include <ahFunctional.H>
Include dependency graph for arraystack.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 (ArrayStack, empty_stack)
 
 TEST_F (SimpleStack, push_pop)
 
 TEST_F (ComplexStack, push_pop)
 
 TEST (ArrayStack, 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 (ArrayStack, push_of_own_item_copies_it_before_growing)
 
 TEST (ArrayStack, push_of_own_moved_item_inserts_its_value)
 
 TEST (ArrayStack, base_of_empty_stack_throws)
 

Variables

constexpr size_t N = 17
 

Detailed Description

Tests for Arraystack.

Definition in file arraystack.cc.

Function Documentation

◆ TEST() [1/5]

TEST ( ArrayStack  ,
base_of_empty_stack_throws   
)

◆ TEST() [2/5]

TEST ( ArrayStack  ,
empty_stack   
)

◆ TEST() [3/5]

TEST ( ArrayStack  ,
Iterator_on_empty_stack   
)

Definition at line 233 of file arraystack.cc.

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

◆ TEST() [4/5]

◆ TEST() [5/5]

TEST ( ArrayStack  ,
push_of_own_moved_item_inserts_its_value   
)

◆ TEST_F() [1/8]

TEST_F ( ComplexStack  ,
copy_operations   
)

◆ TEST_F() [2/8]

TEST_F ( ComplexStack  ,
Iterator   
)

Definition at line 253 of file arraystack.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 242 of file arraystack.cc.

◆ TEST_F() [7/8]

TEST_F ( SimpleStack  ,
push_pop   
)

Definition at line 84 of file arraystack.cc.

References m.

◆ TEST_F() [8/8]

TEST_F ( SimpleStack  ,
traverse   
)

Definition at line 372 of file arraystack.cc.

References k.

Variable Documentation

◆ N

constexpr size_t N = 17
constexpr

Definition at line 51 of file arraystack.cc.