|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Tests for Memarray. More...
Go to the source code of this file.
Classes | |
| struct | Default_MemArray |
| struct | MemArray_with_30_items |
Functions | |
| bool | is_power_of_two (size_t x) |
| TEST (MemArray, Basic_initialization) | |
| TEST_F (Default_MemArray, growing_in_2_powers) | |
| TEST_F (Default_MemArray, putn) | |
| TEST_F (Default_MemArray, access_operator) | |
| TEST_F (Default_MemArray, reserve) | |
| TEST_F (MemArray_with_30_items, copy_and_assigment) | |
| TEST (MemArray, zero_capacity) | |
| TEST (MemArray, insertion_with_rvalues) | |
| TEST (MemArray, remove_with_rvalues) | |
| TEST_F (Default_MemArray, contraction) | |
| TEST_F (Default_MemArray, remove_on_empty) | |
| TEST (MemArray, as_stack) | |
| TEST (MemArray, Iterator_on_empty_container) | |
| TEST_F (Default_MemArray, Iterator) | |
| TEST (MemArray, traverse_on_empty_container) | |
| TEST_F (Default_MemArray, traverse) | |
Tests for Memarray.
Definition in file memarray.cc.
| bool is_power_of_two | ( | size_t | x | ) |
Definition at line 47 of file memarray.cc.
Referenced by TEST().
| TEST | ( | MemArray | , |
| as_stack | |||
| ) |
Definition at line 446 of file memarray.cc.
References Aleph::MemArray< T >::is_empty(), Aleph::maps(), Aleph::MemArray< T >::pop(), Aleph::MemArray< T >::push(), Aleph::MemArray< T >::size(), and Aleph::MemArray< T >::top().
| TEST | ( | MemArray | , |
| Basic_initialization | |||
| ) |
Definition at line 68 of file memarray.cc.
References Aleph::DynList< T >::get(), Aleph::HTList::is_empty(), is_power_of_two(), Aleph::maps(), and Aleph::HTList::size().
| TEST | ( | MemArray | , |
| insertion_with_rvalues | |||
| ) |
Definition at line 362 of file memarray.cc.
References Aleph::DynList< T >::append(), LocateFunctions< Container, Type >::get_it(), Aleph::MemArray< T >::insert(), Aleph::HTList::is_empty(), Aleph::MemArray< T >::is_empty(), l, Aleph::maps(), N, and Aleph::MemArray< T >::size().
| TEST | ( | MemArray | , |
| Iterator_on_empty_container | |||
| ) |
Definition at line 464 of file memarray.cc.
References Aleph::Array_Iterator< T >::get_curr(), Aleph::Array_Iterator< T >::has_curr(), Aleph::maps(), Aleph::Array_Iterator< T >::next(), Aleph::Array_Iterator< T >::prev(), Aleph::Array_Iterator< T >::reset(), and Aleph::Array_Iterator< T >::reset_last().
| TEST | ( | MemArray | , |
| remove_with_rvalues | |||
| ) |
Definition at line 390 of file memarray.cc.
References Aleph::MemArray< T >::capacity(), LocateFunctions< Container, Type >::get_it(), Aleph::DynList< T >::insert(), Aleph::MemArray< T >::insert(), Aleph::HTList::is_empty(), l, Aleph::maps(), N, and Aleph::MemArray< T >::remove_first().
| TEST | ( | MemArray | , |
| traverse_on_empty_container | |||
| ) |
Definition at line 497 of file memarray.cc.
References Aleph::maps(), and Aleph::MemArray< T >::traverse().
| TEST | ( | MemArray | , |
| zero_capacity | |||
| ) |
Definition at line 353 of file memarray.cc.
References Aleph::MemArray< T >::capacity(), Aleph::MemArray< T >::get_ptr(), Aleph::MemArray< T >::is_empty(), Aleph::maps(), and Aleph::MemArray< T >::size().
| TEST_F | ( | Default_MemArray | , |
| access_operator | |||
| ) |
Definition at line 214 of file memarray.cc.
References Aleph::DynList< T >::append(), and Aleph::maps().
| TEST_F | ( | Default_MemArray | , |
| contraction | |||
| ) |
Definition at line 418 of file memarray.cc.
References Aleph::maps(), N, and Aleph::HTList::size().
| TEST_F | ( | Default_MemArray | , |
| growing_in_2_powers | |||
| ) |
Definition at line 133 of file memarray.cc.
References Aleph::maps().
| TEST_F | ( | Default_MemArray | , |
| Iterator | |||
| ) |
Definition at line 484 of file memarray.cc.
References Aleph::Array_Iterator< T >::get_curr(), Aleph::Array_Iterator< T >::has_curr(), Aleph::maps(), Aleph::Array_Iterator< T >::prev(), and Aleph::Array_Iterator< T >::reset_last().
| TEST_F | ( | Default_MemArray | , |
| putn | |||
| ) |
Definition at line 174 of file memarray.cc.
References dim(), Aleph::maps(), and Aleph::HTList::size().
| TEST_F | ( | Default_MemArray | , |
| remove_on_empty | |||
| ) |
Definition at line 438 of file memarray.cc.
References Aleph::maps().
| TEST_F | ( | Default_MemArray | , |
| reserve | |||
| ) |
Definition at line 265 of file memarray.cc.
References Aleph::maps().
| TEST_F | ( | Default_MemArray | , |
| traverse | |||
| ) |
Definition at line 510 of file memarray.cc.
References Aleph::maps(), N, and GenericTraverse< Container >::traverse().
| TEST_F | ( | MemArray_with_30_items | , |
| copy_and_assigment | |||
| ) |
Definition at line 276 of file memarray.cc.
References Aleph::MemArray< T >::capacity(), Aleph::MemArray< T >::get_ptr(), Aleph::MemArray< T >::is_empty(), Aleph::maps(), Aleph::HTList::size(), and Aleph::MemArray< T >::size().