|
Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
|
Tests for Dynlist. More...
#include <gtest/gtest.h>#include <stdexcept>#include <vector>#include <htlist.H>#include <ah-unique.H>#include <ah-convert.H>Go to the source code of this file.
Classes | |
| struct | List_of_25_items |
Functions | |
| TEST (DynList, Basic_operations) | |
| TEST (DynList, Clear_operation) | |
| TEST (DynList, EqualityOperator) | |
| TEST (DynList, Simple_append_and_insert_of_list) | |
| TEST (DynListAlgorithms, InPlaceUnique) | |
| TEST_F (List_of_25_items, Basic_operations) | |
| TEST_F (List_of_25_items, Iterator_operations) | |
| TEST_F (List_of_25_items, Split_and_concat) | |
| TEST_F (List_of_25_items, swap) | |
| TEST_F (List_of_25_items, reverse) | |
| TEST_F (List_of_25_items, rotate_left) | |
| TEST_F (List_of_25_items, append_and_insert_by_moving) | |
| TEST (DynList, traverse_on_empty_container) | |
| TEST_F (List_of_25_items, traverse) | |
| TEST (DynListFunctional, ToArrayHelperPreservesOrder) | |
| TEST (DynList, ConstructorsFreeWhatTheyAppendedWhenACopyThrows) | |
Tests for Dynlist.
Definition in file dynlist.cc.
| TEST | ( | DynList | , |
| Basic_operations | |||
| ) |
Definition at line 65 of file dynlist.cc.
References Aleph::DynList< T >::append(), Aleph::DynList< T >::get_first(), Aleph::DynList< T >::get_last(), Aleph::DynList< T >::insert(), Aleph::HTList::is_empty(), Aleph::HTList::is_unitarian(), Aleph::HTList::is_unitarian_or_empty(), Aleph::DynList< T >::remove_first(), Aleph::HTList::rotate_left(), and Aleph::DynList< T >::size().
| TEST | ( | DynList | , |
| Clear_operation | |||
| ) |
Definition at line 114 of file dynlist.cc.
References Aleph::DynList< T >::append(), Aleph::DynList< T >::clear(), LocateFunctions< Container, Type >::contains(), Aleph::DynList< T >::get_first(), Aleph::HTList::is_empty(), and Aleph::DynList< T >::size().
| TEST | ( | DynList | , |
| ConstructorsFreeWhatTheyAppendedWhenACopyThrows | |||
| ) |
Definition at line 429 of file dynlist.cc.
References Aleph::copy(), k, and l.
| TEST | ( | DynList | , |
| EqualityOperator | |||
| ) |
Definition at line 136 of file dynlist.cc.
| TEST | ( | DynList | , |
| Simple_append_and_insert_of_list | |||
| ) |
Definition at line 156 of file dynlist.cc.
References Aleph::DynList< T >::append(), Aleph::DynList< T >::get_first(), Aleph::DynList< T >::get_last(), Aleph::DynList< T >::insert(), Aleph::HTList::is_empty(), Aleph::HTList::is_unitarian(), and Aleph::DynList< T >::size().
| TEST | ( | DynList | , |
| traverse_on_empty_container | |||
| ) |
Definition at line 349 of file dynlist.cc.
References m, and GenericTraverse< Container >::traverse().
| TEST | ( | DynListAlgorithms | , |
| InPlaceUnique | |||
| ) |
Definition at line 173 of file dynlist.cc.
References Aleph::DynList< T >::append(), Aleph::DynList< T >::get_first(), LocateFunctions< Container, Type >::get_it(), Aleph::in_place_unique(), and Aleph::DynList< T >::size().
| TEST | ( | DynListFunctional | , |
| ToArrayHelperPreservesOrder | |||
| ) |
Definition at line 368 of file dynlist.cc.
References Aleph::DynList< T >::append(), LocateFunctions< Container, Type >::get_it(), Aleph::DynList< T >::size(), and Aleph::to_array().
| TEST_F | ( | List_of_25_items | , |
| append_and_insert_by_moving | |||
| ) |
Definition at line 331 of file dynlist.cc.
References Aleph::DynList< T >::insert(), Aleph::HTList::is_empty(), and Aleph::DynList< T >::reverse().
| TEST_F | ( | List_of_25_items | , |
| Basic_operations | |||
| ) |
Definition at line 218 of file dynlist.cc.
| TEST_F | ( | List_of_25_items | , |
| Iterator_operations | |||
| ) |
Definition at line 228 of file dynlist.cc.
| TEST_F | ( | List_of_25_items | , |
| reverse | |||
| ) |
Definition at line 279 of file dynlist.cc.
References Aleph::eq(), Aleph::HTList::Iterator::has_curr(), l, r, Aleph::DynList< T >::rev(), and Aleph::DynList< T >::reverse().
| TEST_F | ( | List_of_25_items | , |
| rotate_left | |||
| ) |
Definition at line 315 of file dynlist.cc.
| TEST_F | ( | List_of_25_items | , |
| Split_and_concat | |||
| ) |
Definition at line 238 of file dynlist.cc.
References Aleph::DynList< T >::get_first(), LocateFunctions< Container, Type >::get_it(), Aleph::DynList< T >::get_last(), l, Aleph::Gsl_Compatible_Rng::next(), r, and Aleph::DynList< T >::size().
| TEST_F | ( | List_of_25_items | , |
| swap | |||
| ) |
Definition at line 265 of file dynlist.cc.
References LocateFunctions< Container, Type >::get_it(), Aleph::HTList::is_empty(), and Aleph::DynList< T >::swap().
| TEST_F | ( | List_of_25_items | , |
| traverse | |||
| ) |
Definition at line 358 of file dynlist.cc.
References N.