|
Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
|
Tests for Dynliststack. More...
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 |
Tests for Dynliststack.
Definition in file dynliststack.cc.
| TEST | ( | DynListStack | , |
| ADeleteThroughTheIteratorLowersTheSize | |||
| ) |
Definition at line 382 of file dynliststack.cc.
References Aleph::DynList< T >::Iterator::del(), Aleph::DynListStack< T >::is_empty(), Aleph::HTList::Iterator::next(), Aleph::DynListStack< T >::pop(), Aleph::DynListStack< T >::push(), and Aleph::DynListStack< T >::size().
| TEST | ( | DynListStack | , |
| AMoveThatThrowsLeavesTheItemInTheStack | |||
| ) |
Definition at line 356 of file dynliststack.cc.
References Aleph::DynListStack< T >::get(), Aleph::DynListStack< T >::pop(), Aleph::DynListStack< T >::push(), Aleph::DynListStack< T >::size(), and Aleph::DynListStack< T >::top().
| TEST | ( | DynListStack | , |
| empty_stack | |||
| ) |
Definition at line 72 of file dynliststack.cc.
References Aleph::DynListStack< T >::is_empty(), Aleph::DynListStack< T >::size(), and Aleph::DynListStack< T >::top().
| TEST | ( | DynListStack | , |
| Iterator_on_empty_stack | |||
| ) |
Definition at line 187 of file dynliststack.cc.
References LocateFunctions< Container, Type >::get_it().
| TEST_F | ( | ComplexStack | , |
| copy_operations | |||
| ) |
Definition at line 270 of file dynliststack.cc.
References Aleph::eq(), Aleph::DynListStack< T >::is_empty(), Aleph::DynListStack< T >::size(), and Aleph::DynListStack< T >::top().
| TEST_F | ( | ComplexStack | , |
| Iterator | |||
| ) |
Definition at line 203 of file dynliststack.cc.
| TEST_F | ( | ComplexStack | , |
| push_pop | |||
| ) |
Definition at line 110 of file dynliststack.cc.
References Aleph::DynList< T >::get_first(), Aleph::DynList< T >::get_last(), l, m, LocateFunctions< Container, Type >::nth(), Aleph::DynList< T >::pop(), and Aleph::DynList< T >::push().
| TEST_F | ( | ComplexStack | , |
| traverse | |||
| ) |
Definition at line 318 of file dynliststack.cc.
References Aleph::and, Aleph::DynList< T >::get_first(), Aleph::DynList< T >::get_last(), l, and LocateFunctions< Container, Type >::nth().
| TEST_F | ( | SimpleStack | , |
| copy_operations | |||
| ) |
Definition at line 215 of file dynliststack.cc.
References Aleph::DynListStack< T >::is_empty(), Aleph::DynListStack< T >::pop(), and Aleph::DynListStack< T >::size().
| TEST_F | ( | SimpleStack | , |
| Iterator | |||
| ) |
Definition at line 196 of file dynliststack.cc.
| TEST_F | ( | SimpleStack | , |
| push_pop | |||
| ) |
Definition at line 80 of file dynliststack.cc.
References m.
| TEST_F | ( | SimpleStack | , |
| traverse | |||
| ) |
Definition at line 310 of file dynliststack.cc.
References k.
|
constexpr |
Definition at line 48 of file dynliststack.cc.