|
Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
|
Tests for Arraystack. More...
#include <gtest/gtest.h>#include <stdexcept>#include <string>#include <utility>#include <tpl_arrayStack.H>#include <ahFunctional.H>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 |
Tests for Arraystack.
Definition in file arraystack.cc.
| TEST | ( | ArrayStack | , |
| base_of_empty_stack_throws | |||
| ) |
Definition at line 430 of file arraystack.cc.
References Aleph::ArrayStack< T >::base(), Aleph::ArrayStack< T >::push(), and Aleph::ArrayStack< T >::top().
| TEST | ( | ArrayStack | , |
| empty_stack | |||
| ) |
Definition at line 75 of file arraystack.cc.
References Aleph::ArrayStack< T >::is_empty(), Aleph::ArrayStack< T >::size(), and Aleph::ArrayStack< T >::top().
| TEST | ( | ArrayStack | , |
| Iterator_on_empty_stack | |||
| ) |
Definition at line 233 of file arraystack.cc.
References LocateFunctions< Container, Type >::get_it().
| TEST | ( | ArrayStack | , |
| push_of_own_item_copies_it_before_growing | |||
| ) |
Definition at line 398 of file arraystack.cc.
References Aleph::ArrayStack< T >::capacity(), Aleph::ArrayStack< T >::pop(), Aleph::ArrayStack< T >::push(), Aleph::ArrayStack< T >::size(), and Aleph::ArrayStack< T >::top().
| TEST | ( | ArrayStack | , |
| push_of_own_moved_item_inserts_its_value | |||
| ) |
Definition at line 412 of file arraystack.cc.
References Aleph::ArrayStack< T >::capacity(), Aleph::ArrayStack< T >::push(), Aleph::ArrayStack< T >::size(), and Aleph::ArrayStack< T >::top().
| TEST_F | ( | ComplexStack | , |
| copy_operations | |||
| ) |
Definition at line 318 of file arraystack.cc.
References Aleph::eq(), Aleph::ArrayStack< T >::is_empty(), Aleph::ArrayStack< T >::size(), and Aleph::ArrayStack< T >::top().
| TEST_F | ( | ComplexStack | , |
| Iterator | |||
| ) |
Definition at line 253 of file arraystack.cc.
| TEST_F | ( | ComplexStack | , |
| push_pop | |||
| ) |
Definition at line 134 of file arraystack.cc.
References Aleph::DynList< T >::get_first(), Aleph::DynList< T >::get_last(), l, m, LocateFunctions< Container, Type >::nth(), Aleph::DynList< T >::pop(), Aleph::DynList< T >::push(), and Aleph::DynList< T >::top().
| TEST_F | ( | ComplexStack | , |
| traverse | |||
| ) |
Definition at line 380 of file arraystack.cc.
References Aleph::DynList< T >::get_first(), Aleph::DynList< T >::get_last(), l, and LocateFunctions< Container, Type >::nth().
| TEST_F | ( | SimpleStack | , |
| copy_operations | |||
| ) |
Definition at line 274 of file arraystack.cc.
References Aleph::ArrayStack< T >::is_empty(), Aleph::ArrayStack< T >::size(), and Aleph::ArrayStack< T >::top().
| TEST_F | ( | SimpleStack | , |
| Iterator | |||
| ) |
Definition at line 242 of file arraystack.cc.
| TEST_F | ( | SimpleStack | , |
| push_pop | |||
| ) |
Definition at line 84 of file arraystack.cc.
References m.
| TEST_F | ( | SimpleStack | , |
| traverse | |||
| ) |
Definition at line 372 of file arraystack.cc.
References k.
|
constexpr |
Definition at line 51 of file arraystack.cc.