Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
ah-stl-zip_test.cc File Reference

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>
Include dependency graph for ah-stl-zip_test.cc:

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)
 

Detailed Description

Tests for Ah Stl Zip.

Definition in file ah-stl-zip_test.cc.

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 1236 of file ah-stl-zip_test.cc.

References Aleph::divide_and_conquer_partition_dp().

◆ TEST() [1/80]

TEST ( StlAdjacent  ,
Basic   
)

◆ TEST() [2/80]

TEST ( StlAdjacent  ,
Empty   
)

◆ TEST() [3/80]

TEST ( StlAdjacent  ,
SingleElement   
)

◆ TEST() [4/80]

TEST ( StlAdjacentAll  ,
Sorted   
)

◆ TEST() [5/80]

TEST ( StlAdjacentExists  ,
HasDuplicate   
)

◆ TEST() [6/80]

TEST ( StlAdjacentMap  ,
Differences   
)

◆ TEST() [7/80]

TEST ( StlEnumerate  ,
Basic   
)

◆ TEST() [8/80]

TEST ( StlEnumerate  ,
Empty   
)

◆ TEST() [9/80]

TEST ( StlUnzip  ,
Pairs   
)

◆ TEST() [10/80]

TEST ( StlUnzipTuple  ,
Basic   
)

◆ TEST() [11/80]

TEST ( StlZipAll  ,
AllTrue   
)

◆ TEST() [12/80]

TEST ( StlZipAll  ,
EmptyContainers   
)

◆ TEST() [13/80]

TEST ( StlZipAll  ,
EqualLengthCheck   
)

◆ TEST() [14/80]

TEST ( StlZipAll  ,
SomeFalse   
)

◆ TEST() [15/80]

TEST ( StlZipAny  ,
AliasWorks   
)

◆ TEST() [16/80]

TEST ( StlZipAssoc  ,
Found   
)

◆ TEST() [17/80]

TEST ( StlZipAssoc  ,
NotFound   
)

◆ TEST() [18/80]

TEST ( StlZipCmp  ,
AllEqual   
)

◆ TEST() [19/80]

TEST ( StlZipCmp  ,
NotAllEqual   
)

◆ TEST() [20/80]

TEST ( StlZipContainerTypes  ,
ManyContainers   
)

◆ TEST() [21/80]

TEST ( StlZipContainerTypes  ,
StdArray   
)

Definition at line 204 of file ah-stl-zip_test.cc.

References Aleph::divide_and_conquer_partition_dp(), Aleph::stl_zip(), and y.

◆ TEST() [22/80]

TEST ( StlZipContainerTypes  ,
VectorAndDeque   
)

◆ TEST() [23/80]

TEST ( StlZipContainerTypes  ,
VectorAndList   
)

Definition at line 160 of file ah-stl-zip_test.cc.

References Aleph::divide_and_conquer_partition_dp(), l, and Aleph::stl_zip().

◆ TEST() [24/80]

TEST ( StlZipContainerTypes  ,
VectorAndSet   
)

◆ TEST() [25/80]

TEST ( StlZipCount  ,
CountMatches   
)

◆ TEST() [26/80]

TEST ( StlZipDrop  ,
DropAll   
)

◆ TEST() [27/80]

TEST ( StlZipDrop  ,
DropFirst   
)

◆ TEST() [28/80]

TEST ( StlZipDropWhile  ,
Basic   
)

◆ TEST() [29/80]

TEST ( StlZipDropWhile  ,
DropAll   
)

◆ TEST() [30/80]

TEST ( StlZipEdgeCases  ,
BothEmpty   
)

◆ TEST() [31/80]

TEST ( StlZipEdgeCases  ,
OneEmpty   
)

◆ TEST() [32/80]

TEST ( StlZipEdgeCases  ,
VeryLongContainers   
)

◆ TEST() [33/80]

TEST ( StlZipEqual  ,
DifferentLength   
)

◆ TEST() [34/80]

TEST ( StlZipEqual  ,
SameLength   
)

◆ TEST() [35/80]

TEST ( StlZipEqualBy  ,
AllMatch   
)

◆ TEST() [36/80]

TEST ( StlZipEqualLength  ,
DifferentLengths   
)

◆ TEST() [37/80]

TEST ( StlZipEqualLength  ,
EqualLengths   
)

◆ TEST() [38/80]

TEST ( StlZipExists  ,
EmptyContainers   
)

◆ TEST() [39/80]

TEST ( StlZipExists  ,
Found   
)

◆ TEST() [40/80]

TEST ( StlZipExists  ,
NotFound   
)

◆ TEST() [41/80]

TEST ( StlZipFilter  ,
BasicFilter   
)

◆ TEST() [42/80]

TEST ( StlZipFilter  ,
NoMatches   
)

◆ TEST() [43/80]

TEST ( StlZipFilteri  ,
EvenIndices   
)

◆ TEST() [44/80]

TEST ( StlZipFindFirst  ,
Found   
)

◆ TEST() [45/80]

TEST ( StlZipFindFirst  ,
NotFound   
)

◆ TEST() [46/80]

TEST ( StlZipFindIndex  ,
Found   
)

◆ TEST() [47/80]

TEST ( StlZipFindIndex  ,
NotFound   
)

◆ TEST() [48/80]

TEST ( StlZipFindLast  ,
Basic   
)

◆ TEST() [49/80]

TEST ( StlZipFindMapi  ,
Found   
)

◆ TEST() [50/80]

TEST ( StlZipFindMapi  ,
NotFound   
)

◆ TEST() [51/80]

TEST ( StlZipFirst  ,
Basic   
)

◆ TEST() [52/80]

TEST ( StlZipFirst  ,
Empty   
)

◆ TEST() [53/80]

TEST ( StlZipFoldl  ,
ConcatStrings   
)

◆ TEST() [54/80]

TEST ( StlZipFoldl  ,
SumProducts   
)

◆ TEST() [55/80]

TEST ( StlZipForEach  ,
BasicForEach   
)

◆ TEST() [56/80]

TEST ( StlZipForEach  ,
WithIndex   
)

◆ TEST() [57/80]

TEST ( StlZipLast  ,
Basic   
)

◆ TEST() [58/80]

TEST ( StlZipLength  ,
BasicLength   
)

◆ TEST() [59/80]

TEST ( StlZipMap  ,
BasicMap   
)

◆ TEST() [60/80]

TEST ( StlZipMap  ,
DifferentReturnType   
)

◆ TEST() [61/80]

TEST ( StlZipMapi  ,
Basic   
)

◆ TEST() [62/80]

TEST ( StlZipMax  ,
Basic   
)

◆ TEST() [63/80]

TEST ( StlZipMem  ,
Found   
)

◆ TEST() [64/80]

TEST ( StlZipMin  ,
Basic   
)

◆ TEST() [65/80]

TEST ( StlZipMinMax  ,
Basic   
)

◆ TEST() [66/80]

TEST ( StlZipMinMax  ,
Empty   
)

◆ TEST() [67/80]

TEST ( StlZipNone  ,
AllFalse   
)

◆ TEST() [68/80]

TEST ( StlZipNth  ,
InvalidIndex   
)

◆ TEST() [69/80]

TEST ( StlZipNth  ,
ValidIndex   
)

◆ TEST() [70/80]

TEST ( StlZipPartition  ,
BasicPartition   
)

◆ TEST() [71/80]

TEST ( StlZipReduce  ,
AliasWorks   
)

◆ TEST() [72/80]

TEST ( StlZipScanLeft  ,
RunningProduct   
)

◆ TEST() [73/80]

TEST ( StlZipScanLeft  ,
RunningSum   
)

◆ TEST() [74/80]

TEST ( StlZipTake  ,
TakeFirst   
)

◆ TEST() [75/80]

TEST ( StlZipTake  ,
TakeMoreThanAvailable   
)

◆ TEST() [76/80]

TEST ( StlZipTakeWhile  ,
Basic   
)

◆ TEST() [77/80]

TEST ( StlZipTakeWhile  ,
TakeNone   
)

◆ TEST() [78/80]

TEST ( StlZipToVector  ,
Materialize   
)

◆ TEST() [79/80]

TEST ( StlZipTraverse  ,
AllTrue   
)

◆ TEST() [80/80]

TEST ( StlZipTraverse  ,
StopsEarly   
)

◆ TEST_F() [1/7]

TEST_F ( StlZipViewTest  ,
BasicIteration   
)

◆ TEST_F() [2/7]

TEST_F ( StlZipViewTest  ,
DifferentLengths_StopsAtShortest   
)

◆ TEST_F() [3/7]

TEST_F ( StlZipViewTest  ,
EmptyContainer   
)

◆ TEST_F() [4/7]

TEST_F ( StlZipViewTest  ,
SingleElement   
)

◆ TEST_F() [5/7]

TEST_F ( StlZipViewTest  ,
ThreeContainers   
)

◆ TEST_F() [6/7]

TEST_F ( StlZipViewTest  ,
ViewEmpty   
)

◆ TEST_F() [7/7]

TEST_F ( StlZipViewTest  ,
ViewSize   
)