|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Tests for Ah Stl Zip. More...
#include <gtest/gtest.h>#include <ah-stl-zip.H>#include <vector>#include <list>#include <set>#include <deque>#include <array>#include <string>#include <numeric>Go to the source code of this file.
Classes | |
| class | StlZipViewTest |
Functions | |
| TEST_F (StlZipViewTest, BasicIteration) | |
| TEST_F (StlZipViewTest, ThreeContainers) | |
| TEST_F (StlZipViewTest, DifferentLengths_StopsAtShortest) | |
| TEST_F (StlZipViewTest, EmptyContainer) | |
| TEST_F (StlZipViewTest, SingleElement) | |
| TEST_F (StlZipViewTest, ViewSize) | |
| TEST_F (StlZipViewTest, ViewEmpty) | |
| TEST (StlZipContainerTypes, VectorAndList) | |
| TEST (StlZipContainerTypes, VectorAndSet) | |
| TEST (StlZipContainerTypes, VectorAndDeque) | |
| TEST (StlZipContainerTypes, StdArray) | |
| TEST (StlZipContainerTypes, ManyContainers) | |
| TEST (StlZipAll, AllTrue) | |
| TEST (StlZipAll, SomeFalse) | |
| TEST (StlZipAll, EmptyContainers) | |
| TEST (StlZipAll, EqualLengthCheck) | |
| TEST (StlZipExists, Found) | |
| TEST (StlZipExists, NotFound) | |
| TEST (StlZipExists, EmptyContainers) | |
| TEST (StlZipAny, AliasWorks) | |
| TEST (StlZipNone, AllFalse) | |
| TEST (StlZipForEach, BasicForEach) | |
| TEST (StlZipForEach, WithIndex) | |
| TEST (StlZipFoldl, SumProducts) | |
| TEST (StlZipFoldl, ConcatStrings) | |
| TEST (StlZipReduce, AliasWorks) | |
| TEST (StlZipMap, BasicMap) | |
| TEST (StlZipMap, DifferentReturnType) | |
| TEST (StlZipFilter, BasicFilter) | |
| TEST (StlZipFilter, NoMatches) | |
| TEST (StlZipFindFirst, Found) | |
| TEST (StlZipFindFirst, NotFound) | |
| TEST (StlZipCount, CountMatches) | |
| TEST (StlZipLength, BasicLength) | |
| TEST (StlZipEqualLength, EqualLengths) | |
| TEST (StlZipEqualLength, DifferentLengths) | |
| TEST (StlZipNth, ValidIndex) | |
| TEST (StlZipNth, InvalidIndex) | |
| TEST (StlZipTake, TakeFirst) | |
| TEST (StlZipTake, TakeMoreThanAvailable) | |
| TEST (StlZipDrop, DropFirst) | |
| TEST (StlZipDrop, DropAll) | |
| TEST (StlZipPartition, BasicPartition) | |
| TEST (StlZipToVector, Materialize) | |
| TEST (StlZipTraverse, AllTrue) | |
| TEST (StlZipTraverse, StopsEarly) | |
| TEST (StlZipCmp, AllEqual) | |
| TEST (StlZipCmp, NotAllEqual) | |
| TEST (StlZipEdgeCases, BothEmpty) | |
| TEST (StlZipEdgeCases, OneEmpty) | |
| TEST (StlZipEdgeCases, VeryLongContainers) | |
| TEST (StlEnumerate, Basic) | |
| TEST (StlEnumerate, Empty) | |
| TEST (StlZipTakeWhile, Basic) | |
| TEST (StlZipTakeWhile, TakeNone) | |
| TEST (StlZipDropWhile, Basic) | |
| TEST (StlZipDropWhile, DropAll) | |
| TEST (StlZipFirst, Basic) | |
| TEST (StlZipFirst, Empty) | |
| TEST (StlZipLast, Basic) | |
| TEST (StlZipFindLast, Basic) | |
| TEST (StlZipFindIndex, Found) | |
| TEST (StlZipFindIndex, NotFound) | |
| TEST (StlUnzip, Pairs) | |
| TEST (StlUnzipTuple, Basic) | |
| TEST (StlAdjacent, Basic) | |
| TEST (StlAdjacent, SingleElement) | |
| TEST (StlAdjacent, Empty) | |
| TEST (StlAdjacentMap, Differences) | |
| TEST (StlAdjacentAll, Sorted) | |
| TEST (StlAdjacentExists, HasDuplicate) | |
| TEST (StlZipMapi, Basic) | |
| TEST (StlZipFilteri, EvenIndices) | |
| TEST (StlZipScanLeft, RunningSum) | |
| TEST (StlZipScanLeft, RunningProduct) | |
| TEST (StlZipFindMapi, Found) | |
| TEST (StlZipFindMapi, NotFound) | |
| TEST (StlZipEqual, SameLength) | |
| TEST (StlZipEqual, DifferentLength) | |
| TEST (StlZipEqualBy, AllMatch) | |
| TEST (StlZipMem, Found) | |
| TEST (StlZipAssoc, Found) | |
| TEST (StlZipAssoc, NotFound) | |
| TEST (StlZipMin, Basic) | |
| TEST (StlZipMax, Basic) | |
| TEST (StlZipMinMax, Basic) | |
| TEST (StlZipMinMax, Empty) | |
| int | main (int argc, char **argv) |
Tests for Ah Stl Zip.
Definition in file ah-stl-zip_test.cc.
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 1236 of file ah-stl-zip_test.cc.
References Aleph::maps().
| TEST | ( | StlAdjacent | , |
| Basic | |||
| ) |
Definition at line 975 of file ah-stl-zip_test.cc.
References Aleph::maps(), Aleph::HTList::size(), and Aleph::stl_adjacent().
| TEST | ( | StlAdjacent | , |
| Empty | |||
| ) |
Definition at line 997 of file ah-stl-zip_test.cc.
References Aleph::maps(), Aleph::HTList::size(), and Aleph::stl_adjacent().
| TEST | ( | StlAdjacent | , |
| SingleElement | |||
| ) |
Definition at line 988 of file ah-stl-zip_test.cc.
References Aleph::maps(), Aleph::HTList::size(), and Aleph::stl_adjacent().
| TEST | ( | StlAdjacentAll | , |
| Sorted | |||
| ) |
Definition at line 1018 of file ah-stl-zip_test.cc.
References Aleph::maps(), and Aleph::stl_adjacent_all().
| TEST | ( | StlAdjacentExists | , |
| HasDuplicate | |||
| ) |
Definition at line 1027 of file ah-stl-zip_test.cc.
References Aleph::maps(), and Aleph::stl_adjacent_exists().
| TEST | ( | StlAdjacentMap | , |
| Differences | |||
| ) |
Definition at line 1006 of file ah-stl-zip_test.cc.
References Aleph::maps(), Aleph::HTList::size(), and Aleph::stl_adjacent_map().
| TEST | ( | StlEnumerate | , |
| Basic | |||
| ) |
Definition at line 775 of file ah-stl-zip_test.cc.
References Aleph::maps(), Aleph::HTList::size(), and Aleph::stl_enumerate().
| TEST | ( | StlEnumerate | , |
| Empty | |||
| ) |
Definition at line 795 of file ah-stl-zip_test.cc.
References Aleph::count(), Aleph::maps(), and Aleph::stl_enumerate().
| TEST | ( | StlUnzip | , |
| Pairs | |||
| ) |
Definition at line 943 of file ah-stl-zip_test.cc.
References Aleph::maps(), Aleph::HTList::size(), and Aleph::stl_unzip().
| TEST | ( | StlUnzipTuple | , |
| Basic | |||
| ) |
Definition at line 955 of file ah-stl-zip_test.cc.
References Aleph::maps(), Aleph::HTList::size(), and Aleph::stl_unzip_tuple().
| TEST | ( | StlZipAll | , |
| AllTrue | |||
| ) |
Definition at line 245 of file ah-stl-zip_test.cc.
References Aleph::maps(), and Aleph::stl_zip_all().
| TEST | ( | StlZipAll | , |
| EmptyContainers | |||
| ) |
Definition at line 269 of file ah-stl-zip_test.cc.
References Aleph::maps(), and Aleph::stl_zip_all().
| TEST | ( | StlZipAll | , |
| EqualLengthCheck | |||
| ) |
Definition at line 278 of file ah-stl-zip_test.cc.
References Aleph::maps(), and Aleph::stl_zip_all_eq().
| TEST | ( | StlZipAll | , |
| SomeFalse | |||
| ) |
Definition at line 257 of file ah-stl-zip_test.cc.
References Aleph::maps(), and Aleph::stl_zip_all().
| TEST | ( | StlZipAny | , |
| AliasWorks | |||
| ) |
Definition at line 332 of file ah-stl-zip_test.cc.
References Aleph::maps(), and Aleph::stl_zip_any().
| TEST | ( | StlZipAssoc | , |
| Found | |||
| ) |
Definition at line 1169 of file ah-stl-zip_test.cc.
References Aleph::maps(), and Aleph::stl_zip_assoc().
| TEST | ( | StlZipAssoc | , |
| NotFound | |||
| ) |
Definition at line 1181 of file ah-stl-zip_test.cc.
References Aleph::maps(), and Aleph::stl_zip_assoc().
| TEST | ( | StlZipCmp | , |
| AllEqual | |||
| ) |
Definition at line 710 of file ah-stl-zip_test.cc.
References Aleph::maps(), Aleph::stl_zip_cmp(), and y.
| TEST | ( | StlZipCmp | , |
| NotAllEqual | |||
| ) |
Definition at line 721 of file ah-stl-zip_test.cc.
References Aleph::maps(), Aleph::stl_zip_cmp(), and y.
| TEST | ( | StlZipContainerTypes | , |
| ManyContainers | |||
| ) |
Definition at line 219 of file ah-stl-zip_test.cc.
References Aleph::count(), Aleph::maps(), and Aleph::stl_zip().
| TEST | ( | StlZipContainerTypes | , |
| StdArray | |||
| ) |
Definition at line 204 of file ah-stl-zip_test.cc.
References Aleph::maps(), Aleph::HTList::size(), Aleph::stl_zip(), and y.
| TEST | ( | StlZipContainerTypes | , |
| VectorAndDeque | |||
| ) |
Definition at line 189 of file ah-stl-zip_test.cc.
References Aleph::count(), Aleph::maps(), and Aleph::stl_zip().
| TEST | ( | StlZipContainerTypes | , |
| VectorAndList | |||
| ) |
Definition at line 160 of file ah-stl-zip_test.cc.
References l, Aleph::maps(), Aleph::HTList::size(), and Aleph::stl_zip().
| TEST | ( | StlZipContainerTypes | , |
| VectorAndSet | |||
| ) |
Definition at line 175 of file ah-stl-zip_test.cc.
References Aleph::count(), Aleph::maps(), and Aleph::stl_zip().
| TEST | ( | StlZipCount | , |
| CountMatches | |||
| ) |
Definition at line 529 of file ah-stl-zip_test.cc.
References Aleph::count(), Aleph::maps(), and Aleph::stl_zip_count().
| TEST | ( | StlZipDrop | , |
| DropAll | |||
| ) |
Definition at line 632 of file ah-stl-zip_test.cc.
References Aleph::maps(), and Aleph::stl_zip_drop().
| TEST | ( | StlZipDrop | , |
| DropFirst | |||
| ) |
Definition at line 620 of file ah-stl-zip_test.cc.
References Aleph::maps(), and Aleph::stl_zip_drop().
| TEST | ( | StlZipDropWhile | , |
| Basic | |||
| ) |
Definition at line 840 of file ah-stl-zip_test.cc.
References Aleph::maps(), and Aleph::stl_zip_drop_while().
| TEST | ( | StlZipDropWhile | , |
| DropAll | |||
| ) |
Definition at line 853 of file ah-stl-zip_test.cc.
References Aleph::maps(), and Aleph::stl_zip_drop_while().
| TEST | ( | StlZipEdgeCases | , |
| BothEmpty | |||
| ) |
Definition at line 736 of file ah-stl-zip_test.cc.
References Aleph::DynList< T >::empty(), Aleph::maps(), Aleph::HTList::size(), and Aleph::stl_zip().
| TEST | ( | StlZipEdgeCases | , |
| OneEmpty | |||
| ) |
Definition at line 745 of file ah-stl-zip_test.cc.
References Aleph::DynList< T >::empty(), Aleph::maps(), and Aleph::stl_zip().
| TEST | ( | StlZipEdgeCases | , |
| VeryLongContainers | |||
| ) |
Definition at line 754 of file ah-stl-zip_test.cc.
References StlAlephIterator< SetName >::begin(), StlAlephIterator< SetName >::end(), Aleph::maps(), Aleph::stl_zip_foldl(), and Aleph::sum().
| TEST | ( | StlZipEqual | , |
| DifferentLength | |||
| ) |
Definition at line 1140 of file ah-stl-zip_test.cc.
References Aleph::maps(), and Aleph::stl_zip_equal().
| TEST | ( | StlZipEqual | , |
| SameLength | |||
| ) |
Definition at line 1132 of file ah-stl-zip_test.cc.
References Aleph::maps(), and Aleph::stl_zip_equal().
| TEST | ( | StlZipEqualBy | , |
| AllMatch | |||
| ) |
Definition at line 1148 of file ah-stl-zip_test.cc.
References Aleph::maps(), and Aleph::stl_zip_equal_by().
| TEST | ( | StlZipEqualLength | , |
| DifferentLengths | |||
| ) |
Definition at line 560 of file ah-stl-zip_test.cc.
References Aleph::maps(), and Aleph::stl_zip_equal_length().
| TEST | ( | StlZipEqualLength | , |
| EqualLengths | |||
| ) |
Definition at line 552 of file ah-stl-zip_test.cc.
References Aleph::maps(), and Aleph::stl_zip_equal_length().
| TEST | ( | StlZipExists | , |
| EmptyContainers | |||
| ) |
Definition at line 323 of file ah-stl-zip_test.cc.
References Aleph::maps(), and Aleph::stl_zip_exists().
| TEST | ( | StlZipExists | , |
| Found | |||
| ) |
Definition at line 299 of file ah-stl-zip_test.cc.
References Aleph::maps(), and Aleph::stl_zip_exists().
| TEST | ( | StlZipExists | , |
| NotFound | |||
| ) |
Definition at line 311 of file ah-stl-zip_test.cc.
References Aleph::maps(), and Aleph::stl_zip_exists().
| TEST | ( | StlZipFilter | , |
| BasicFilter | |||
| ) |
Definition at line 471 of file ah-stl-zip_test.cc.
References Aleph::maps(), and Aleph::stl_zip_filter().
| TEST | ( | StlZipFilter | , |
| NoMatches | |||
| ) |
Definition at line 483 of file ah-stl-zip_test.cc.
References Aleph::maps(), and Aleph::stl_zip_filter().
| TEST | ( | StlZipFilteri | , |
| EvenIndices | |||
| ) |
Definition at line 1055 of file ah-stl-zip_test.cc.
References Aleph::maps(), Aleph::HTList::size(), and Aleph::stl_zip_filteri().
| TEST | ( | StlZipFindFirst | , |
| Found | |||
| ) |
Definition at line 499 of file ah-stl-zip_test.cc.
References Aleph::maps(), and Aleph::stl_zip_find_first().
| TEST | ( | StlZipFindFirst | , |
| NotFound | |||
| ) |
Definition at line 513 of file ah-stl-zip_test.cc.
References Aleph::maps(), and Aleph::stl_zip_find_first().
| TEST | ( | StlZipFindIndex | , |
| Found | |||
| ) |
Definition at line 915 of file ah-stl-zip_test.cc.
References Aleph::maps(), and Aleph::stl_zip_find_index().
| TEST | ( | StlZipFindIndex | , |
| NotFound | |||
| ) |
Definition at line 927 of file ah-stl-zip_test.cc.
References Aleph::maps(), and Aleph::stl_zip_find_index().
| TEST | ( | StlZipFindLast | , |
| Basic | |||
| ) |
Definition at line 902 of file ah-stl-zip_test.cc.
References Aleph::maps(), and Aleph::stl_zip_find_last().
| TEST | ( | StlZipFindMapi | , |
| Found | |||
| ) |
Definition at line 1103 of file ah-stl-zip_test.cc.
References Aleph::maps(), and Aleph::stl_zip_find_mapi().
| TEST | ( | StlZipFindMapi | , |
| NotFound | |||
| ) |
Definition at line 1118 of file ah-stl-zip_test.cc.
References Aleph::maps(), and Aleph::stl_zip_find_mapi().
| TEST | ( | StlZipFirst | , |
| Basic | |||
| ) |
Definition at line 869 of file ah-stl-zip_test.cc.
References Aleph::maps(), and Aleph::stl_zip_first().
| TEST | ( | StlZipFirst | , |
| Empty | |||
| ) |
Definition at line 881 of file ah-stl-zip_test.cc.
References Aleph::maps(), and Aleph::stl_zip_first().
| TEST | ( | StlZipFoldl | , |
| ConcatStrings | |||
| ) |
Definition at line 409 of file ah-stl-zip_test.cc.
References Aleph::maps(), and Aleph::stl_zip_foldl().
| TEST | ( | StlZipFoldl | , |
| SumProducts | |||
| ) |
Definition at line 396 of file ah-stl-zip_test.cc.
References Aleph::maps(), and Aleph::stl_zip_foldl().
| TEST | ( | StlZipForEach | , |
| BasicForEach | |||
| ) |
Definition at line 360 of file ah-stl-zip_test.cc.
References Aleph::maps(), Aleph::HTList::size(), and Aleph::stl_zip_for_each().
| TEST | ( | StlZipForEach | , |
| WithIndex | |||
| ) |
Definition at line 376 of file ah-stl-zip_test.cc.
References Aleph::maps(), Aleph::HTList::size(), and Aleph::stl_zip_for_each_indexed().
| TEST | ( | StlZipLast | , |
| Basic | |||
| ) |
Definition at line 890 of file ah-stl-zip_test.cc.
References Aleph::maps(), and Aleph::stl_zip_last().
| TEST | ( | StlZipLength | , |
| BasicLength | |||
| ) |
Definition at line 541 of file ah-stl-zip_test.cc.
References Aleph::maps(), and Aleph::stl_zip_length().
| TEST | ( | StlZipMap | , |
| BasicMap | |||
| ) |
Definition at line 437 of file ah-stl-zip_test.cc.
References Aleph::maps(), Aleph::HTList::size(), and Aleph::stl_zip_map().
| TEST | ( | StlZipMap | , |
| DifferentReturnType | |||
| ) |
Definition at line 452 of file ah-stl-zip_test.cc.
References Aleph::maps(), Aleph::HTList::size(), and Aleph::stl_zip_map().
| TEST | ( | StlZipMapi | , |
| Basic | |||
| ) |
Definition at line 1040 of file ah-stl-zip_test.cc.
References Aleph::maps(), Aleph::HTList::size(), and Aleph::stl_zip_mapi().
| TEST | ( | StlZipMax | , |
| Basic | |||
| ) |
Definition at line 1202 of file ah-stl-zip_test.cc.
References Aleph::maps(), and Aleph::stl_zip_max().
| TEST | ( | StlZipMem | , |
| Found | |||
| ) |
Definition at line 1160 of file ah-stl-zip_test.cc.
References Aleph::maps(), and Aleph::stl_zip_mem().
| TEST | ( | StlZipMin | , |
| Basic | |||
| ) |
Definition at line 1191 of file ah-stl-zip_test.cc.
References Aleph::maps(), and Aleph::stl_zip_min().
| TEST | ( | StlZipMinMax | , |
| Basic | |||
| ) |
Definition at line 1213 of file ah-stl-zip_test.cc.
References Aleph::maps(), and Aleph::stl_zip_min_max().
| TEST | ( | StlZipMinMax | , |
| Empty | |||
| ) |
Definition at line 1225 of file ah-stl-zip_test.cc.
References Aleph::maps(), and Aleph::stl_zip_min_max().
| TEST | ( | StlZipNone | , |
| AllFalse | |||
| ) |
Definition at line 344 of file ah-stl-zip_test.cc.
References Aleph::maps(), and Aleph::stl_zip_none().
| TEST | ( | StlZipNth | , |
| InvalidIndex | |||
| ) |
Definition at line 584 of file ah-stl-zip_test.cc.
References Aleph::maps(), and Aleph::stl_zip_nth().
| TEST | ( | StlZipNth | , |
| ValidIndex | |||
| ) |
Definition at line 572 of file ah-stl-zip_test.cc.
References Aleph::maps(), and Aleph::stl_zip_nth().
| TEST | ( | StlZipPartition | , |
| BasicPartition | |||
| ) |
Definition at line 646 of file ah-stl-zip_test.cc.
References Aleph::maps(), Aleph::HTList::size(), and Aleph::stl_zip_partition().
| TEST | ( | StlZipReduce | , |
| AliasWorks | |||
| ) |
Definition at line 421 of file ah-stl-zip_test.cc.
References Aleph::maps(), Aleph::stl_zip_reduce(), and Aleph::sum().
| TEST | ( | StlZipScanLeft | , |
| RunningProduct | |||
| ) |
Definition at line 1087 of file ah-stl-zip_test.cc.
References Aleph::maps(), Aleph::HTList::size(), and Aleph::stl_zip_scan_left().
| TEST | ( | StlZipScanLeft | , |
| RunningSum | |||
| ) |
Definition at line 1070 of file ah-stl-zip_test.cc.
References Aleph::maps(), Aleph::HTList::size(), and Aleph::stl_zip_scan_left().
| TEST | ( | StlZipTake | , |
| TakeFirst | |||
| ) |
Definition at line 598 of file ah-stl-zip_test.cc.
References Aleph::maps(), and Aleph::stl_zip_take().
| TEST | ( | StlZipTake | , |
| TakeMoreThanAvailable | |||
| ) |
Definition at line 610 of file ah-stl-zip_test.cc.
References Aleph::maps(), and Aleph::stl_zip_take().
| TEST | ( | StlZipTakeWhile | , |
| Basic | |||
| ) |
Definition at line 814 of file ah-stl-zip_test.cc.
References Aleph::maps(), and Aleph::stl_zip_take_while().
| TEST | ( | StlZipTakeWhile | , |
| TakeNone | |||
| ) |
Definition at line 828 of file ah-stl-zip_test.cc.
References Aleph::maps(), and Aleph::stl_zip_take_while().
| TEST | ( | StlZipToVector | , |
| Materialize | |||
| ) |
Definition at line 663 of file ah-stl-zip_test.cc.
References Aleph::maps(), and Aleph::stl_zip_to_vector().
| TEST | ( | StlZipTraverse | , |
| AllTrue | |||
| ) |
Definition at line 679 of file ah-stl-zip_test.cc.
References Aleph::maps(), and Aleph::stl_zip_traverse().
| TEST | ( | StlZipTraverse | , |
| StopsEarly | |||
| ) |
Definition at line 691 of file ah-stl-zip_test.cc.
References Aleph::count(), Aleph::maps(), and Aleph::stl_zip_traverse().
| TEST_F | ( | StlZipViewTest | , |
| BasicIteration | |||
| ) |
Definition at line 73 of file ah-stl-zip_test.cc.
References Aleph::count(), Aleph::maps(), and Aleph::stl_zip().
| TEST_F | ( | StlZipViewTest | , |
| DifferentLengths_StopsAtShortest | |||
| ) |
Definition at line 97 of file ah-stl-zip_test.cc.
References Aleph::count(), Aleph::maps(), and Aleph::stl_zip().
| TEST_F | ( | StlZipViewTest | , |
| EmptyContainer | |||
| ) |
Definition at line 111 of file ah-stl-zip_test.cc.
References Aleph::count(), Aleph::maps(), and Aleph::stl_zip().
| TEST_F | ( | StlZipViewTest | , |
| SingleElement | |||
| ) |
Definition at line 125 of file ah-stl-zip_test.cc.
References Aleph::count(), Aleph::maps(), and Aleph::stl_zip().
| TEST_F | ( | StlZipViewTest | , |
| ThreeContainers | |||
| ) |
Definition at line 85 of file ah-stl-zip_test.cc.
References Aleph::count(), Aleph::maps(), and Aleph::stl_zip().
| TEST_F | ( | StlZipViewTest | , |
| ViewEmpty | |||
| ) |
Definition at line 146 of file ah-stl-zip_test.cc.
References Aleph::DynList< T >::empty(), Aleph::maps(), and Aleph::stl_zip().
| TEST_F | ( | StlZipViewTest | , |
| ViewSize | |||
| ) |
Definition at line 140 of file ah-stl-zip_test.cc.
References Aleph::maps(), Aleph::HTList::size(), and Aleph::stl_zip().