|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Tests for Ah Uni Functional. More...
#include <gtest/gtest.h>#include <ah-uni-functional.H>#include <htlist.H>#include <tpl_dynArray.H>#include <tpl_dynDlist.H>#include <vector>#include <list>#include <deque>#include <string>Go to the source code of this file.
Functions | |
| TEST (UniMapStl, Basic) | |
| TEST (UniFilterStl, Basic) | |
| TEST (UniFoldlStl, Sum) | |
| TEST (UniAllStl, AllTrue) | |
| TEST (UniExistsStl, SomeTrue) | |
| TEST (UniMapAleph, DynList) | |
| TEST (UniFilterAleph, DynList) | |
| TEST (UniFoldlAleph, Sum) | |
| TEST (UniAllAleph, AllTrue) | |
| TEST (UniExistsAleph, SomeTrue) | |
| TEST (UniMapAleph, DynArray) | |
| TEST (UniFilterAleph, DynDlist) | |
| TEST (UniMapMixed, SameResultBothContainerTypes) | |
| TEST (UniFilterMixed, SameResultBothContainerTypes) | |
| TEST (UniFoldlMixed, SameResultBothContainerTypes) | |
| TEST (UniMapi, StlAndAleph) | |
| TEST (UniFilteri, EvenIndices) | |
| TEST (UniScanLeft, RunningSum) | |
| TEST (UniFind, StlAndAleph) | |
| TEST (UniFindIndex, StlAndAleph) | |
| TEST (UniMem, StlAndAleph) | |
| TEST (UniCount, StlAndAleph) | |
| TEST (UniLength, StlAndAleph) | |
| TEST (UniTake, StlAndAleph) | |
| TEST (UniDrop, StlAndAleph) | |
| TEST (UniTakeWhile, StlAndAleph) | |
| TEST (UniDropWhile, StlAndAleph) | |
| TEST (UniFirst, StlAndAleph) | |
| TEST (UniLast, StlAndAleph) | |
| TEST (UniNth, StlAndAleph) | |
| TEST (UniMin, StlAndAleph) | |
| TEST (UniMax, StlAndAleph) | |
| TEST (UniMinMax, StlAndAleph) | |
| TEST (UniSum, StlAndAleph) | |
| TEST (UniProduct, StlAndAleph) | |
| TEST (UniPartition, StlAndAleph) | |
| TEST (UniToVector, AlephToStl) | |
| TEST (UniEqual, StlAndAleph) | |
| TEST (UniCompare, StlAndAleph) | |
| TEST (UniMixed, WorksWithList) | |
| TEST (UniMixed, WorksWithDeque) | |
| TEST (UniEdgeCases, EmptyStl) | |
| TEST (UniEdgeCases, EmptyAleph) | |
| TEST (UniEdgeCases, SingleElement) | |
| int | main (int argc, char **argv) |
Tests for Ah Uni Functional.
Definition in file ah-uni-functional_test.cc.
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 625 of file ah-uni-functional_test.cc.
References Aleph::maps().
| TEST | ( | UniAllAleph | , |
| AllTrue | |||
| ) |
Definition at line 135 of file ah-uni-functional_test.cc.
References l, Aleph::maps(), and Aleph::uni_all().
| TEST | ( | UniAllStl | , |
| AllTrue | |||
| ) |
Definition at line 92 of file ah-uni-functional_test.cc.
References Aleph::maps(), and Aleph::uni_all().
| TEST | ( | UniCompare | , |
| StlAndAleph | |||
| ) |
Definition at line 548 of file ah-uni-functional_test.cc.
References Aleph::maps(), and Aleph::uni_compare().
| TEST | ( | UniCount | , |
| StlAndAleph | |||
| ) |
Definition at line 309 of file ah-uni-functional_test.cc.
References Aleph::maps(), Aleph::stl_count(), and Aleph::uni_count().
| TEST | ( | UniDrop | , |
| StlAndAleph | |||
| ) |
Definition at line 347 of file ah-uni-functional_test.cc.
References Aleph::maps(), Aleph::HTList::size(), and Aleph::uni_drop().
| TEST | ( | UniDropWhile | , |
| StlAndAleph | |||
| ) |
Definition at line 372 of file ah-uni-functional_test.cc.
References Aleph::maps(), Aleph::HTList::size(), and Aleph::uni_drop_while().
| TEST | ( | UniEdgeCases | , |
| EmptyAleph | |||
| ) |
Definition at line 599 of file ah-uni-functional_test.cc.
References Aleph::DynList< T >::empty(), Aleph::maps(), Aleph::sum(), Aleph::uni_first(), Aleph::uni_foldl(), and Aleph::uni_map().
| TEST | ( | UniEdgeCases | , |
| EmptyStl | |||
| ) |
Definition at line 585 of file ah-uni-functional_test.cc.
References Aleph::DynList< T >::empty(), Aleph::maps(), Aleph::sum(), Aleph::uni_first(), Aleph::uni_foldl(), and Aleph::uni_map().
| TEST | ( | UniEdgeCases | , |
| SingleElement | |||
| ) |
Definition at line 613 of file ah-uni-functional_test.cc.
References Aleph::maps(), Aleph::uni_first(), Aleph::uni_last(), Aleph::uni_max(), and Aleph::uni_min().
| TEST | ( | UniEqual | , |
| StlAndAleph | |||
| ) |
Definition at line 538 of file ah-uni-functional_test.cc.
References Aleph::maps(), and Aleph::uni_equal().
| TEST | ( | UniExistsAleph | , |
| SomeTrue | |||
| ) |
Definition at line 141 of file ah-uni-functional_test.cc.
References l, Aleph::maps(), and Aleph::uni_exists().
| TEST | ( | UniExistsStl | , |
| SomeTrue | |||
| ) |
Definition at line 98 of file ah-uni-functional_test.cc.
References Aleph::maps(), and Aleph::uni_exists().
| TEST | ( | UniFilterAleph | , |
| DynDlist | |||
| ) |
Definition at line 161 of file ah-uni-functional_test.cc.
References Aleph::DynList< T >::append(), l, Aleph::maps(), Aleph::HTList::size(), and Aleph::uni_filter().
| TEST | ( | UniFilterAleph | , |
| DynList | |||
| ) |
Definition at line 118 of file ah-uni-functional_test.cc.
References l, Aleph::maps(), Aleph::HTList::size(), and Aleph::uni_filter().
| TEST | ( | UniFilteri | , |
| EvenIndices | |||
| ) |
Definition at line 236 of file ah-uni-functional_test.cc.
References Aleph::maps(), Aleph::HTList::size(), and Aleph::uni_filteri().
| TEST | ( | UniFilterMixed | , |
| SameResultBothContainerTypes | |||
| ) |
Definition at line 191 of file ah-uni-functional_test.cc.
References Aleph::maps(), and Aleph::uni_filter().
| TEST | ( | UniFilterStl | , |
| Basic | |||
| ) |
Definition at line 75 of file ah-uni-functional_test.cc.
References Aleph::maps(), Aleph::HTList::size(), and Aleph::uni_filter().
| TEST | ( | UniFind | , |
| StlAndAleph | |||
| ) |
Definition at line 266 of file ah-uni-functional_test.cc.
References Aleph::maps(), and Aleph::uni_find().
| TEST | ( | UniFindIndex | , |
| StlAndAleph | |||
| ) |
Definition at line 280 of file ah-uni-functional_test.cc.
References Aleph::maps(), and Aleph::uni_find_index().
| TEST | ( | UniFirst | , |
| StlAndAleph | |||
| ) |
Definition at line 389 of file ah-uni-functional_test.cc.
References Aleph::maps(), Aleph::stl_first(), and Aleph::uni_first().
| TEST | ( | UniFoldlAleph | , |
| Sum | |||
| ) |
Definition at line 128 of file ah-uni-functional_test.cc.
References l, Aleph::maps(), Aleph::sum(), and Aleph::uni_foldl().
| TEST | ( | UniFoldlMixed | , |
| SameResultBothContainerTypes | |||
| ) |
Definition at line 202 of file ah-uni-functional_test.cc.
References Aleph::maps(), Aleph::stl_sum(), and Aleph::uni_foldl().
| TEST | ( | UniFoldlStl | , |
| Sum | |||
| ) |
Definition at line 85 of file ah-uni-functional_test.cc.
References Aleph::maps(), Aleph::sum(), and Aleph::uni_foldl().
| TEST | ( | UniLast | , |
| StlAndAleph | |||
| ) |
Definition at line 403 of file ah-uni-functional_test.cc.
References Aleph::maps(), Aleph::stl_last(), and Aleph::uni_last().
| TEST | ( | UniLength | , |
| StlAndAleph | |||
| ) |
Definition at line 321 of file ah-uni-functional_test.cc.
References Aleph::maps(), and Aleph::uni_length().
| TEST | ( | UniMapAleph | , |
| DynArray | |||
| ) |
Definition at line 147 of file ah-uni-functional_test.cc.
References Aleph::DynArray< T >::append(), Aleph::maps(), Aleph::HTList::size(), and Aleph::uni_map().
| TEST | ( | UniMapAleph | , |
| DynList | |||
| ) |
Definition at line 108 of file ah-uni-functional_test.cc.
References l, Aleph::maps(), Aleph::HTList::size(), and Aleph::uni_map().
| TEST | ( | UniMapi | , |
| StlAndAleph | |||
| ) |
Definition at line 218 of file ah-uni-functional_test.cc.
References Aleph::maps(), and Aleph::uni_mapi().
| TEST | ( | UniMapMixed | , |
| SameResultBothContainerTypes | |||
| ) |
Definition at line 180 of file ah-uni-functional_test.cc.
References Aleph::maps(), and Aleph::uni_map().
| TEST | ( | UniMapStl | , |
| Basic | |||
| ) |
Definition at line 65 of file ah-uni-functional_test.cc.
References Aleph::maps(), Aleph::HTList::size(), and Aleph::uni_map().
| TEST | ( | UniMax | , |
| StlAndAleph | |||
| ) |
Definition at line 449 of file ah-uni-functional_test.cc.
References Aleph::maps(), Aleph::stl_max(), and Aleph::uni_max().
| TEST | ( | UniMem | , |
| StlAndAleph | |||
| ) |
Definition at line 294 of file ah-uni-functional_test.cc.
References Aleph::maps(), and Aleph::uni_mem().
| TEST | ( | UniMin | , |
| StlAndAleph | |||
| ) |
Definition at line 435 of file ah-uni-functional_test.cc.
References Aleph::maps(), Aleph::stl_min(), and Aleph::uni_min().
| TEST | ( | UniMinMax | , |
| StlAndAleph | |||
| ) |
Definition at line 463 of file ah-uni-functional_test.cc.
References Aleph::maps(), and Aleph::uni_min_max().
| TEST | ( | UniMixed | , |
| WorksWithDeque | |||
| ) |
Definition at line 573 of file ah-uni-functional_test.cc.
References Aleph::maps(), Aleph::HTList::size(), and Aleph::uni_filter().
| TEST | ( | UniMixed | , |
| WorksWithList | |||
| ) |
Definition at line 564 of file ah-uni-functional_test.cc.
References l, Aleph::maps(), Aleph::HTList::size(), and Aleph::uni_map().
| TEST | ( | UniNth | , |
| StlAndAleph | |||
| ) |
Definition at line 417 of file ah-uni-functional_test.cc.
References Aleph::maps(), Aleph::stl_nth(), and Aleph::uni_nth().
| TEST | ( | UniPartition | , |
| StlAndAleph | |||
| ) |
Definition at line 505 of file ah-uni-functional_test.cc.
References Aleph::maps(), Aleph::HTList::size(), and Aleph::uni_partition().
| TEST | ( | UniProduct | , |
| StlAndAleph | |||
| ) |
Definition at line 492 of file ah-uni-functional_test.cc.
References Aleph::maps(), and Aleph::uni_product().
| TEST | ( | UniScanLeft | , |
| RunningSum | |||
| ) |
Definition at line 248 of file ah-uni-functional_test.cc.
References Aleph::maps(), Aleph::HTList::size(), and Aleph::uni_scan_left().
| TEST | ( | UniSum | , |
| StlAndAleph | |||
| ) |
Definition at line 483 of file ah-uni-functional_test.cc.
References Aleph::maps(), and Aleph::uni_sum().
| TEST | ( | UniTake | , |
| StlAndAleph | |||
| ) |
Definition at line 334 of file ah-uni-functional_test.cc.
References Aleph::maps(), Aleph::HTList::size(), and Aleph::uni_take().
| TEST | ( | UniTakeWhile | , |
| StlAndAleph | |||
| ) |
Definition at line 360 of file ah-uni-functional_test.cc.
References Aleph::maps(), Aleph::HTList::size(), and Aleph::uni_take_while().
| TEST | ( | UniToVector | , |
| AlephToStl | |||
| ) |
Definition at line 523 of file ah-uni-functional_test.cc.
References Aleph::maps(), Aleph::HTList::size(), and Aleph::uni_to_vector().