|
Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
|
Tests for Dynlistqueue. More...
#include <gtest/gtest.h>#include <tpl_dynListQueue.H>#include <stdexcept>#include <ahFunctional.H>Go to the source code of this file.
Classes | |
| struct | SimpleQueue |
| struct | ComplexQueue |
Functions | |
| TEST (DynListQueue, empty_queue) | |
| TEST_F (SimpleQueue, get_put) | |
| TEST_F (ComplexQueue, push_pop) | |
| TEST (DynListQueue, Iterator_on_empty_queue) | |
| TEST_F (SimpleQueue, Iterator) | |
| TEST_F (ComplexQueue, Iterator) | |
| TEST_F (SimpleQueue, copy_operations) | |
| TEST_F (ComplexQueue, copy_operations) | |
| TEST_F (SimpleQueue, traverse) | |
| TEST_F (ComplexQueue, traverse) | |
| TEST (DynListQueue, AMoveThatThrowsLeavesTheItemInTheQueue) | |
| TEST (DynListQueue, ADeleteThroughTheIteratorLowersTheSize) | |
Variables | |
| constexpr size_t | N = 17 |
Tests for Dynlistqueue.
Definition in file dynlistqueue.cc.
| TEST | ( | DynListQueue | , |
| ADeleteThroughTheIteratorLowersTheSize | |||
| ) |
Definition at line 397 of file dynlistqueue.cc.
References Aleph::DynList< T >::Iterator::del(), Aleph::DynListQueue< T >::get(), Aleph::DynListQueue< T >::is_empty(), Aleph::HTList::Iterator::next(), Aleph::DynListQueue< T >::put(), and Aleph::DynListQueue< T >::size().
| TEST | ( | DynListQueue | , |
| AMoveThatThrowsLeavesTheItemInTheQueue | |||
| ) |
Definition at line 371 of file dynlistqueue.cc.
References Aleph::DynListQueue< T >::front(), Aleph::DynListQueue< T >::get(), Aleph::DynListQueue< T >::pop(), Aleph::DynListQueue< T >::put(), and Aleph::DynListQueue< T >::size().
| TEST | ( | DynListQueue | , |
| empty_queue | |||
| ) |
Definition at line 72 of file dynlistqueue.cc.
References Aleph::DynListQueue< T >::front(), Aleph::DynListQueue< T >::is_empty(), Aleph::DynListQueue< T >::rear(), and Aleph::DynListQueue< T >::size().
| TEST | ( | DynListQueue | , |
| Iterator_on_empty_queue | |||
| ) |
Definition at line 174 of file dynlistqueue.cc.
References LocateFunctions< Container, Type >::get_it().
| TEST_F | ( | ComplexQueue | , |
| copy_operations | |||
| ) |
Definition at line 260 of file dynlistqueue.cc.
References Aleph::eq(), Aleph::DynListQueue< T >::front(), Aleph::DynList< T >::get_first(), LocateFunctions< Container, Type >::get_it(), Aleph::DynList< T >::get_last(), Aleph::DynListQueue< T >::is_empty(), k, l, LocateFunctions< Container, Type >::nth(), Aleph::DynListQueue< T >::rear(), and Aleph::DynListQueue< T >::size().
| TEST_F | ( | ComplexQueue | , |
| Iterator | |||
| ) |
Definition at line 190 of file dynlistqueue.cc.
| TEST_F | ( | ComplexQueue | , |
| push_pop | |||
| ) |
Definition at line 115 of file dynlistqueue.cc.
References Aleph::DynList< T >::get(), Aleph::DynList< T >::get_first(), Aleph::DynList< T >::get_last(), l, m, LocateFunctions< Container, Type >::nth(), and Aleph::DynList< T >::put().
| TEST_F | ( | ComplexQueue | , |
| traverse | |||
| ) |
Definition at line 330 of file dynlistqueue.cc.
References Aleph::and, Aleph::DynList< T >::get_first(), Aleph::DynList< T >::get_last(), l, and LocateFunctions< Container, Type >::nth().
| TEST_F | ( | SimpleQueue | , |
| copy_operations | |||
| ) |
Definition at line 202 of file dynlistqueue.cc.
References Aleph::DynListQueue< T >::get(), Aleph::DynListQueue< T >::is_empty(), and Aleph::DynListQueue< T >::size().
| TEST_F | ( | SimpleQueue | , |
| get_put | |||
| ) |
Definition at line 81 of file dynlistqueue.cc.
References m.
| TEST_F | ( | SimpleQueue | , |
| Iterator | |||
| ) |
Definition at line 183 of file dynlistqueue.cc.
| TEST_F | ( | SimpleQueue | , |
| traverse | |||
| ) |
Definition at line 322 of file dynlistqueue.cc.
References k.
|
constexpr |
Definition at line 48 of file dynlistqueue.cc.