|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Tests for Arraystack. 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 (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) | |
Variables | |
| constexpr size_t | N = 17 |
Tests for Arraystack.
Definition in file arraystack.cc.
| TEST | ( | ArrayStack | , |
| empty_stack | |||
| ) |
Definition at line 71 of file arraystack.cc.
References Aleph::ArrayStack< T >::is_empty(), Aleph::maps(), Aleph::ArrayStack< T >::size(), and Aleph::ArrayStack< T >::top().
| TEST | ( | ArrayStack | , |
| Iterator_on_empty_stack | |||
| ) |
Definition at line 229 of file arraystack.cc.
References LocateFunctions< Container, Type >::get_it(), and Aleph::maps().
| TEST_F | ( | ComplexStack | , |
| copy_operations | |||
| ) |
Definition at line 314 of file arraystack.cc.
References Aleph::eq(), Aleph::HTList::is_empty(), Aleph::maps(), Aleph::HTList::size(), and Aleph::DynList< T >::top().
| TEST_F | ( | ComplexStack | , |
| Iterator | |||
| ) |
Definition at line 249 of file arraystack.cc.
References Aleph::maps().
| TEST_F | ( | ComplexStack | , |
| push_pop | |||
| ) |
Definition at line 130 of file arraystack.cc.
References Aleph::DynList< T >::get_first(), Aleph::DynList< T >::get_last(), Aleph::HTList::is_empty(), l, Aleph::maps(), LocateFunctions< Container, Type >::nth(), Aleph::DynList< T >::pop(), Aleph::DynList< T >::push(), and Aleph::DynList< T >::top().
| TEST_F | ( | ComplexStack | , |
| traverse | |||
| ) |
Definition at line 376 of file arraystack.cc.
References Aleph::DynList< T >::get_first(), Aleph::DynList< T >::get_last(), l, Aleph::maps(), LocateFunctions< Container, Type >::nth(), and GenericTraverse< Container >::traverse().
| TEST_F | ( | SimpleStack | , |
| copy_operations | |||
| ) |
Definition at line 270 of file arraystack.cc.
References Aleph::HTList::is_empty(), Aleph::maps(), Aleph::HTList::size(), and Aleph::DynList< T >::top().
| TEST_F | ( | SimpleStack | , |
| Iterator | |||
| ) |
Definition at line 238 of file arraystack.cc.
References Aleph::maps().
| TEST_F | ( | SimpleStack | , |
| push_pop | |||
| ) |
Definition at line 80 of file arraystack.cc.
References Aleph::maps().
| TEST_F | ( | SimpleStack | , |
| traverse | |||
| ) |
Definition at line 368 of file arraystack.cc.
References Aleph::maps(), and GenericTraverse< Container >::traverse().
|
constexpr |
Definition at line 47 of file arraystack.cc.