|
Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
|
Tests for Htlist. More...
Go to the source code of this file.
Classes | |
| struct | List_of_25_nodes |
Functions | |
| TEST (HTList, Basic_operations) | |
| TEST (HTList, Simple_append_and_insert_of_list) | |
| TEST_F (List_of_25_nodes, Basic_operations) | |
| TEST (HTList, Iterator_on_empty_list) | |
| TEST_F (List_of_25_nodes, Iterator_operations) | |
| TEST_F (List_of_25_nodes, Iterator_del_ne_removes_the_first_a_middle_and_the_last) | |
| TEST (HTListDeathTest, Iterator_del_ne_asserts_that_there_is_a_current_item) | |
| TEST_F (List_of_25_nodes, Split_and_concat) | |
| TEST_F (List_of_25_nodes, swap) | |
| TEST_F (List_of_25_nodes, cut_and_concat) | |
| TEST_F (List_of_25_nodes, reverse) | |
| TEST_F (List_of_25_nodes, rotate_left) | |
| TEST (HTList, As_stack) | |
| TEST (DynList, AMoveThatThrowsLeavesTheItemInTheList) | |
| TEST (DynList, ARemoveMovesTheItemOnce) | |
| TEST (DynList, AMoveThatThrowsInDelLeavesTheItemInTheList) | |
Tests for Htlist.
Definition in file htlist.cc.
| TEST | ( | DynList | , |
| AMoveThatThrowsInDelLeavesTheItemInTheList | |||
| ) |
Definition at line 459 of file htlist.cc.
References Aleph::DynList< T >::append(), Aleph::DynList< T >::Iterator::del(), Aleph::DynList< T >::Iterator::get_curr(), Aleph::DynList< T >::get_first(), Aleph::DynList< T >::get_last(), Aleph::HTList::Iterator::has_curr(), k, Aleph::HTList::Iterator::next(), and Aleph::DynList< T >::size().
| TEST | ( | DynList | , |
| AMoveThatThrowsLeavesTheItemInTheList | |||
| ) |
Definition at line 416 of file htlist.cc.
References Aleph::DynList< T >::append(), Aleph::DynList< T >::get(), Aleph::DynList< T >::get_first(), Aleph::DynList< T >::pop(), Aleph::DynList< T >::remove(), Aleph::remove(), Aleph::DynList< T >::remove_first(), Aleph::DynList< T >::remove_ne(), and Aleph::DynList< T >::size().
| TEST | ( | DynList | , |
| ARemoveMovesTheItemOnce | |||
| ) |
Definition at line 440 of file htlist.cc.
References Aleph::DynList< T >::append(), Aleph::DynList< T >::remove(), Aleph::DynList< T >::remove_ne(), and Aleph::DynList< T >::size().
| TEST | ( | HTList | , |
| As_stack | |||
| ) |
Definition at line 359 of file htlist.cc.
References Aleph::HTList::is_empty(), Aleph::HTList::is_unitarian(), Aleph::HTList::is_unitarian_or_empty(), Aleph::HTList::pop(), Aleph::HTList::push(), and Aleph::HTList::top().
| TEST | ( | HTList | , |
| Basic_operations | |||
| ) |
Definition at line 62 of file htlist.cc.
References Aleph::HTList::append(), Aleph::Snodenc< T >::get_data(), Aleph::HTList::get_first(), Aleph::HTList::get_head(), Aleph::HTList::get_last(), Aleph::HTList::get_tail(), Aleph::HTList::insert(), Aleph::HTList::is_empty(), Aleph::HTList::is_unitarian(), Aleph::HTList::is_unitarian_or_empty(), Aleph::HTList::remove_first(), Aleph::HTList::rotate_left(), Aleph::HTList::size(), Aleph::Slinknc::to_data(), and Aleph::Slinknc::to_snodenc().
| TEST | ( | HTList | , |
| Iterator_on_empty_list | |||
| ) |
Definition at line 167 of file htlist.cc.
References Aleph::HTList::Iterator::get_curr(), Aleph::HTList::Iterator::has_curr(), Aleph::HTList::Iterator::is_in_first(), Aleph::HTList::Iterator::is_in_last(), Aleph::HTList::Iterator::is_last(), l, and Aleph::HTList::Iterator::reset_first().
| TEST | ( | HTList | , |
| Simple_append_and_insert_of_list | |||
| ) |
Definition at line 136 of file htlist.cc.
References Aleph::HTList::append(), Aleph::HTList::get_first(), Aleph::HTList::get_last(), Aleph::HTList::insert(), Aleph::HTList::is_empty(), Aleph::HTList::is_unitarian(), Aleph::HTList::remove_all_and_delete(), Aleph::HTList::size(), and Aleph::Slinknc::to_data().
| TEST | ( | HTListDeathTest | , |
| Iterator_del_ne_asserts_that_there_is_a_current_item | |||
| ) |
Definition at line 228 of file htlist.cc.
References Aleph::HTList::append(), Aleph::HTList::Iterator::del_ne(), and Aleph::HTList::Iterator::next_ne().
| TEST_F | ( | List_of_25_nodes | , |
| Basic_operations | |||
| ) |
Definition at line 155 of file htlist.cc.
References Aleph::Snodenc< T >::get_data().
| TEST_F | ( | List_of_25_nodes | , |
| cut_and_concat | |||
| ) |
Definition at line 288 of file htlist.cc.
References Aleph::HTList::cut(), Aleph::HTList::Iterator::get_curr(), Aleph::HTList::Iterator::has_curr(), Aleph::HTList::is_empty(), Aleph::HTList::Iterator::next(), and Aleph::Slinknc::to_data().
| TEST_F | ( | List_of_25_nodes | , |
| Iterator_del_ne_removes_the_first_a_middle_and_the_last | |||
| ) |
Definition at line 193 of file htlist.cc.
References Aleph::HTList::Iterator::del_ne(), Aleph::HTList::Iterator::get_curr_ne(), Aleph::HTList::Iterator::has_curr(), Aleph::HTList::Iterator::is_last(), Aleph::HTList::Iterator::next_ne(), Aleph::HTList::Iterator::reset_first(), Aleph::Slinknc::to_data(), and Aleph::Slinknc::to_snodenc().
| TEST_F | ( | List_of_25_nodes | , |
| Iterator_operations | |||
| ) |
Definition at line 183 of file htlist.cc.
References Aleph::HTList::Iterator::has_curr().
| TEST_F | ( | List_of_25_nodes | , |
| reverse | |||
| ) |
Definition at line 312 of file htlist.cc.
References Aleph::HTList::Iterator::has_curr(), Aleph::HTList::is_empty(), l, r, and Aleph::DynList< T >::reverse().
| TEST_F | ( | List_of_25_nodes | , |
| rotate_left | |||
| ) |
Definition at line 343 of file htlist.cc.
References Aleph::HTList::Iterator::get_curr(), Aleph::HTList::Iterator::has_curr(), Aleph::HTList::Iterator::next(), and Aleph::Slinknc::to_data().
| TEST_F | ( | List_of_25_nodes | , |
| Split_and_concat | |||
| ) |
Definition at line 245 of file htlist.cc.
References Aleph::DynList< T >::get_first(), Aleph::DynList< T >::get_last(), l, Aleph::Gsl_Compatible_Rng::next(), r, and Aleph::DynList< T >::size().
| TEST_F | ( | List_of_25_nodes | , |
| swap | |||
| ) |
Definition at line 272 of file htlist.cc.
References Aleph::HTList::is_empty(), Aleph::HTList::remove_all_and_delete(), and Aleph::HTList::swap().