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

Tests for Ah Stl Functional. More...

#include <gtest/gtest.h>
#include <numeric>
#include <ah-stl-functional.H>
#include <vector>
#include <list>
#include <deque>
#include <string>
#include <forward_list>
Include dependency graph for ah-stl-functional_test.cc:

Go to the source code of this file.

Classes

struct  std::hash< Point >
 
struct  std::hash< MoveTracker >
 

Namespaces

namespace  std
 STL namespace.
 

Functions

 TEST (StlRange, BasicRange)
 
 TEST (StlRange, RangeWithStep)
 
 TEST (StlRange, SingleArgRange)
 
 TEST (StlLinspace, Basic)
 
 TEST (StlRep, Basic)
 
 TEST (StlGenerate, Basic)
 
 TEST (StlForEach, Basic)
 
 TEST (StlForEachIndexed, Basic)
 
 TEST (StlMap, Basic)
 
 TEST (StlMap, TypeChange)
 
 TEST (StlMapi, Basic)
 
 TEST (StlFilter, Basic)
 
 TEST (StlFilteri, EvenIndices)
 
 TEST (StlFoldl, Sum)
 
 TEST (StlFoldl, Product)
 
 TEST (StlFoldr, Subtraction)
 
 TEST (StlFoldr, ListConstruction)
 
 TEST (StlScanLeft, RunningSum)
 
 TEST (StlScanRight, Basic)
 
 TEST (StlAll, AllTrue)
 
 TEST (StlAll, SomeFalse)
 
 TEST (StlExists, SomeTrue)
 
 TEST (StlExists, NoneTrue)
 
 TEST (StlNone, Basic)
 
 TEST (StlFind, Found)
 
 TEST (StlFind, NotFound)
 
 TEST (StlFindLast, Found)
 
 TEST (StlFindIndex, Found)
 
 TEST (StlFindMapi, Found)
 
 TEST (StlMem, Found)
 
 TEST (StlCount, Basic)
 
 TEST (StlCountValue, Basic)
 
 TEST (StlTake, Basic)
 
 TEST (StlDrop, Basic)
 
 TEST (StlTakeLast, Basic)
 
 TEST (StlTakeWhile, Basic)
 
 TEST (StlDropWhile, Basic)
 
 TEST (StlFirst, Basic)
 
 TEST (StlFirst, Empty)
 
 TEST (StlLast, Basic)
 
 TEST (StlNth, Basic)
 
 TEST (StlMin, Basic)
 
 TEST (StlMax, Basic)
 
 TEST (StlMinMax, Basic)
 
 TEST (StlMinBy, Basic)
 
 TEST (StlMaxBy, Basic)
 
 TEST (StlSum, Basic)
 
 TEST (StlProduct, Basic)
 
 TEST (StlPartition, Basic)
 
 TEST (StlZipToPairs, Basic)
 
 TEST (StlUnzipPairs, Basic)
 
 TEST (StlEnumerateToPairs, Basic)
 
 TEST (StlEqual, Equal)
 
 TEST (StlEqual, NotEqual)
 
 TEST (StlCompare, Equal)
 
 TEST (StlCompare, Less)
 
 TEST (StlCompare, Greater)
 
 TEST (StlReverse, Basic)
 
 TEST (StlSort, Basic)
 
 TEST (StlSortBy, Basic)
 
 TEST (StlUnique, Basic)
 
 TEST (StlDistinct, Basic)
 
 TEST (StlConcat, Basic)
 
 TEST (StlFlatten, Basic)
 
 TEST (StlFlatMap, Basic)
 
 TEST (StlGroup, Basic)
 
 TEST (StlGroupBy, Basic)
 
 TEST (StlFunctional, WorksWithList)
 
 TEST (StlFunctional, WorksWithDeque)
 
 TEST (StlPermutations, Basic)
 
 TEST (StlPermutations, TraverseWithStop)
 
 TEST (StlCombinations, ChooseTwo)
 
 TEST (StlCombinations, ChooseThree)
 
 TEST (StlArrangements, ChooseTwo)
 
 TEST (StlCartesianProduct, Basic)
 
 TEST (StlPowerSet, Basic)
 
 TEST (StlSlidingWindow, Basic)
 
 TEST (StlChunks, Basic)
 
 TEST (StlIntersperse, Basic)
 
 TEST (StlSplitAt, Basic)
 
 TEST (StlSpan, Basic)
 
 TEST (StlInit, Basic)
 
 TEST (StlTail, Basic)
 
 TEST (StlTally, Basic)
 
 TEST (StlReject, Basic)
 
 TEST (StlDistinctPerformance, LargeContainerUsesHashPath)
 
 TEST (StlDistinctPerformance, VeryLargeContainer)
 
 TEST (StlTallyPerformance, LargeContainerUsesHashPath)
 
 TEST (StlGroupByPerformance, LargeContainerUsesHashPath)
 
 TEST (StlDistinctEdgeCases, EmptyContainer)
 
 TEST (StlDistinctEdgeCases, SingleElement)
 
 TEST (StlDistinctEdgeCases, AllSame)
 
 TEST (StlDistinctEdgeCases, AllUnique)
 
 TEST (StlTallyEdgeCases, EmptyContainer)
 
 TEST (StlTallyEdgeCases, SingleElement)
 
 TEST (StlGroupByEdgeCases, EmptyContainer)
 
 TEST (StlGroupByEdgeCases, SingleElement)
 
 TEST (StlGroupByEdgeCases, AllSameKey)
 
 TEST (StlDistinctSmall, UsesLinearPath)
 
 TEST (StlTallySmall, UsesLinearPath)
 
 TEST (StlDistinctCustomType, PointsSmall)
 
 TEST (StlDistinctCustomType, PointsLarge)
 
 TEST (StlTallyCustomType, Points)
 
 TEST (StlGroupByCustomType, PointsByQuadrant)
 
 TEST (StlMapForwarding, LambdaWithCapture)
 
 TEST (StlFilterForwarding, MutableLambda)
 
 TEST (StlFoldlForwarding, AccumulatorByValue)
 
 TEST (StlDistinctContainerTypes, List)
 
 TEST (StlDistinctContainerTypes, Deque)
 
 TEST (StlTallyContainerTypes, List)
 
 TEST (StlGroupByContainerTypes, List)
 
 TEST (StlDistinctOrder, PreservesFirstOccurrence)
 
 TEST (StlDistinctOrder, PreservesFirstOccurrenceLarge)
 
 TEST (StlTallyOrder, PreservesFirstOccurrence)
 
 TEST (StlGroupByOrder, PreservesFirstOccurrence)
 
 TEST (StlDistinctStrings, Basic)
 
 TEST (StlDistinctStrings, Large)
 
 TEST (StlGroupByStrings, ByLength)
 
 TEST (StlGroupByStrings, ByFirstChar)
 
 TEST (StlDistinctBoundary, JustBelowThreshold)
 
 TEST (StlDistinctBoundary, ExactlyAtThreshold)
 
 TEST (StlDistinctBoundary, JustAboveThreshold)
 
 TEST (StlComposition, DistinctThenMap)
 
 TEST (StlComposition, FilterThenDistinct)
 
 TEST (StlComposition, GroupByThenMap)
 
 TEST (StlForwardListCompat, Map)
 
 TEST (StlForwardListCompat, Filter)
 
 TEST (StlForwardListCompat, Foldl)
 
 TEST (StlForwardListCompat, Distinct)
 
 TEST (StlForwardListCompat, Tally)
 
 TEST (StlForwardListCompat, GroupBy)
 
 TEST (StlForwardListCompat, Last)
 
 TEST (StlForwardListCompat, TakeLast)
 
 TEST (StlForwardListCompat, Drop)
 
 TEST (StlNonHashable, DistinctSmall)
 
 TEST (StlNonHashable, DistinctLarge)
 
 TEST (StlNonHashable, TallySmall)
 
 TEST (StlNonHashable, GroupByWithNonHashableKey)
 
 TEST (StlStatefulCallable, FilterPreservesState)
 
 TEST (StlStatefulCallable, MapPreservesState)
 
 TEST (StlStatefulCallable, ForEachPreservesState)
 
 TEST (StlStatefulCallable, AllPreservesState)
 
 TEST (StlStatefulCallable, ExistsStopsEarly)
 
 TEST (StlEmptyContainer, LastReturnsNullopt)
 
 TEST (StlEmptyContainer, MinReturnsNullopt)
 
 TEST (StlEmptyContainer, MaxReturnsNullopt)
 
 TEST (StlEmptyContainer, ProductReturnsZero)
 
 TEST (StlEmptyContainer, SumReturnsZero)
 
 TEST (StlEmptyContainer, ScanLeftReturnsInit)
 
 TEST (StlEmptyContainer, ScanRightReturnsInit)
 
 TEST (StlEmptyContainer, InterspersReturnsEmpty)
 
 TEST (StlEmptyContainer, SlidingWindowReturnsEmpty)
 
 TEST (StlEmptyContainer, ChunksReturnsEmpty)
 
 TEST (StlPowerSetOverflow, ThrowsForLargeContainer)
 
 TEST (StlPowerSetOverflow, WorksForSmallContainer)
 
int main (int argc, char **argv)
 

Detailed Description

Tests for Ah Stl Functional.

Definition in file ah-stl-functional_test.cc.

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 1858 of file ah-stl-functional_test.cc.

◆ TEST() [1/155]

TEST ( StlAll  ,
AllTrue   
)

Definition at line 250 of file ah-stl-functional_test.cc.

References Aleph::stl_all().

◆ TEST() [2/155]

TEST ( StlAll  ,
SomeFalse   
)

Definition at line 256 of file ah-stl-functional_test.cc.

References Aleph::stl_all().

◆ TEST() [3/155]

TEST ( StlArrangements  ,
ChooseTwo   
)

Definition at line 808 of file ah-stl-functional_test.cc.

References Aleph::stl_arrangements().

◆ TEST() [4/155]

TEST ( StlCartesianProduct  ,
Basic   
)

Definition at line 817 of file ah-stl-functional_test.cc.

References Aleph::product(), and Aleph::stl_cartesian_product().

◆ TEST() [5/155]

TEST ( StlChunks  ,
Basic   
)

Definition at line 850 of file ah-stl-functional_test.cc.

References Aleph::stl_chunks().

◆ TEST() [6/155]

TEST ( StlCombinations  ,
ChooseThree   
)

Definition at line 799 of file ah-stl-functional_test.cc.

References Aleph::stl_combinations().

◆ TEST() [7/155]

TEST ( StlCombinations  ,
ChooseTwo   
)

Definition at line 786 of file ah-stl-functional_test.cc.

References Aleph::stl_combinations().

◆ TEST() [8/155]

TEST ( StlCompare  ,
Equal   
)

Definition at line 586 of file ah-stl-functional_test.cc.

References Aleph::stl_compare().

◆ TEST() [9/155]

TEST ( StlCompare  ,
Greater   
)

Definition at line 602 of file ah-stl-functional_test.cc.

References Aleph::stl_compare().

◆ TEST() [10/155]

TEST ( StlCompare  ,
Less   
)

Definition at line 594 of file ah-stl-functional_test.cc.

References Aleph::stl_compare().

◆ TEST() [11/155]

TEST ( StlComposition  ,
DistinctThenMap   
)

Definition at line 1468 of file ah-stl-functional_test.cc.

References Aleph::stl_distinct(), and Aleph::stl_map().

◆ TEST() [12/155]

TEST ( StlComposition  ,
FilterThenDistinct   
)

Definition at line 1477 of file ah-stl-functional_test.cc.

References Aleph::stl_distinct(), and Aleph::stl_filter().

◆ TEST() [13/155]

TEST ( StlComposition  ,
GroupByThenMap   
)

◆ TEST() [14/155]

TEST ( StlConcat  ,
Basic   
)

Definition at line 670 of file ah-stl-functional_test.cc.

References Aleph::stl_concat().

◆ TEST() [15/155]

TEST ( StlCount  ,
Basic   
)

Definition at line 343 of file ah-stl-functional_test.cc.

References Aleph::count(), and Aleph::stl_count().

◆ TEST() [16/155]

TEST ( StlCountValue  ,
Basic   
)

Definition at line 350 of file ah-stl-functional_test.cc.

References Aleph::stl_count_value().

◆ TEST() [17/155]

TEST ( StlDistinct  ,
Basic   
)

Definition at line 658 of file ah-stl-functional_test.cc.

References Aleph::stl_distinct().

◆ TEST() [18/155]

TEST ( StlDistinctBoundary  ,
ExactlyAtThreshold   
)

Definition at line 1444 of file ah-stl-functional_test.cc.

References Aleph::stl_distinct().

◆ TEST() [19/155]

TEST ( StlDistinctBoundary  ,
JustAboveThreshold   
)

Definition at line 1454 of file ah-stl-functional_test.cc.

References Aleph::stl_distinct().

◆ TEST() [20/155]

TEST ( StlDistinctBoundary  ,
JustBelowThreshold   
)

Definition at line 1434 of file ah-stl-functional_test.cc.

References Aleph::stl_distinct().

◆ TEST() [21/155]

TEST ( StlDistinctContainerTypes  ,
Deque   
)

Definition at line 1306 of file ah-stl-functional_test.cc.

References Aleph::stl_distinct().

◆ TEST() [22/155]

TEST ( StlDistinctContainerTypes  ,
List   
)

Definition at line 1299 of file ah-stl-functional_test.cc.

References l, and Aleph::stl_distinct().

◆ TEST() [23/155]

TEST ( StlDistinctCustomType  ,
PointsLarge   
)

Definition at line 1139 of file ah-stl-functional_test.cc.

References Aleph::stl_distinct().

◆ TEST() [24/155]

TEST ( StlDistinctCustomType  ,
PointsSmall   
)

Definition at line 1129 of file ah-stl-functional_test.cc.

References Aleph::stl_distinct(), and y.

◆ TEST() [25/155]

TEST ( StlDistinctEdgeCases  ,
AllSame   
)

Definition at line 1008 of file ah-stl-functional_test.cc.

References Aleph::stl_distinct().

◆ TEST() [26/155]

TEST ( StlDistinctEdgeCases  ,
AllUnique   
)

Definition at line 1016 of file ah-stl-functional_test.cc.

References Aleph::stl_distinct(), and Aleph::stl_range().

◆ TEST() [27/155]

TEST ( StlDistinctEdgeCases  ,
EmptyContainer   
)

Definition at line 993 of file ah-stl-functional_test.cc.

References Aleph::stl_distinct().

◆ TEST() [28/155]

TEST ( StlDistinctEdgeCases  ,
SingleElement   
)

Definition at line 1000 of file ah-stl-functional_test.cc.

References Aleph::stl_distinct().

◆ TEST() [29/155]

TEST ( StlDistinctOrder  ,
PreservesFirstOccurrence   
)

Definition at line 1331 of file ah-stl-functional_test.cc.

References Aleph::stl_distinct().

◆ TEST() [30/155]

TEST ( StlDistinctOrder  ,
PreservesFirstOccurrenceLarge   
)

Definition at line 1343 of file ah-stl-functional_test.cc.

References Aleph::stl_distinct().

◆ TEST() [31/155]

TEST ( StlDistinctPerformance  ,
LargeContainerUsesHashPath   
)

Definition at line 929 of file ah-stl-functional_test.cc.

References Aleph::stl_distinct().

◆ TEST() [32/155]

TEST ( StlDistinctPerformance  ,
VeryLargeContainer   
)

Definition at line 946 of file ah-stl-functional_test.cc.

References Aleph::stl_distinct().

◆ TEST() [33/155]

TEST ( StlDistinctSmall  ,
UsesLinearPath   
)

Definition at line 1068 of file ah-stl-functional_test.cc.

References Aleph::stl_distinct().

◆ TEST() [34/155]

TEST ( StlDistinctStrings  ,
Basic   
)

Definition at line 1392 of file ah-stl-functional_test.cc.

References Aleph::stl_distinct().

◆ TEST() [35/155]

TEST ( StlDistinctStrings  ,
Large   
)

Definition at line 1403 of file ah-stl-functional_test.cc.

References Aleph::stl_distinct().

◆ TEST() [36/155]

TEST ( StlDrop  ,
Basic   
)

Definition at line 370 of file ah-stl-functional_test.cc.

References Aleph::stl_drop().

◆ TEST() [37/155]

TEST ( StlDropWhile  ,
Basic   
)

Definition at line 399 of file ah-stl-functional_test.cc.

References Aleph::stl_drop_while().

◆ TEST() [38/155]

TEST ( StlEmptyContainer  ,
ChunksReturnsEmpty   
)

Definition at line 1829 of file ah-stl-functional_test.cc.

References Aleph::stl_chunks().

◆ TEST() [39/155]

TEST ( StlEmptyContainer  ,
InterspersReturnsEmpty   
)

Definition at line 1815 of file ah-stl-functional_test.cc.

References Aleph::stl_intersperse().

◆ TEST() [40/155]

TEST ( StlEmptyContainer  ,
LastReturnsNullopt   
)

Definition at line 1762 of file ah-stl-functional_test.cc.

References Aleph::stl_last().

◆ TEST() [41/155]

TEST ( StlEmptyContainer  ,
MaxReturnsNullopt   
)

Definition at line 1776 of file ah-stl-functional_test.cc.

References Aleph::stl_max().

◆ TEST() [42/155]

TEST ( StlEmptyContainer  ,
MinReturnsNullopt   
)

Definition at line 1769 of file ah-stl-functional_test.cc.

References Aleph::stl_min().

◆ TEST() [43/155]

TEST ( StlEmptyContainer  ,
ProductReturnsZero   
)

Definition at line 1783 of file ah-stl-functional_test.cc.

References Aleph::stl_product().

◆ TEST() [44/155]

TEST ( StlEmptyContainer  ,
ScanLeftReturnsInit   
)

Definition at line 1797 of file ah-stl-functional_test.cc.

References Aleph::stl_scan_left().

◆ TEST() [45/155]

TEST ( StlEmptyContainer  ,
ScanRightReturnsInit   
)

Definition at line 1806 of file ah-stl-functional_test.cc.

References Aleph::stl_scan_right().

◆ TEST() [46/155]

TEST ( StlEmptyContainer  ,
SlidingWindowReturnsEmpty   
)

Definition at line 1822 of file ah-stl-functional_test.cc.

References Aleph::stl_sliding_window().

◆ TEST() [47/155]

TEST ( StlEmptyContainer  ,
SumReturnsZero   
)

Definition at line 1790 of file ah-stl-functional_test.cc.

References Aleph::stl_sum().

◆ TEST() [48/155]

TEST ( StlEnumerateToPairs  ,
Basic   
)

Definition at line 554 of file ah-stl-functional_test.cc.

References Aleph::stl_enumerate_to_pairs().

◆ TEST() [49/155]

TEST ( StlEqual  ,
Equal   
)

Definition at line 570 of file ah-stl-functional_test.cc.

References Aleph::stl_equal().

◆ TEST() [50/155]

TEST ( StlEqual  ,
NotEqual   
)

Definition at line 578 of file ah-stl-functional_test.cc.

References Aleph::stl_equal().

◆ TEST() [51/155]

TEST ( StlExists  ,
NoneTrue   
)

Definition at line 268 of file ah-stl-functional_test.cc.

References Aleph::stl_exists().

◆ TEST() [52/155]

TEST ( StlExists  ,
SomeTrue   
)

Definition at line 262 of file ah-stl-functional_test.cc.

References Aleph::stl_exists().

◆ TEST() [53/155]

TEST ( StlFilter  ,
Basic   
)

Definition at line 163 of file ah-stl-functional_test.cc.

References Aleph::stl_filter().

◆ TEST() [54/155]

TEST ( StlFilterForwarding  ,
MutableLambda   
)

Definition at line 1268 of file ah-stl-functional_test.cc.

References Aleph::stl_filter().

◆ TEST() [55/155]

TEST ( StlFilteri  ,
EvenIndices   
)

Definition at line 173 of file ah-stl-functional_test.cc.

References Aleph::stl_filteri().

◆ TEST() [56/155]

TEST ( StlFind  ,
Found   
)

Definition at line 284 of file ah-stl-functional_test.cc.

References Aleph::stl_find().

◆ TEST() [57/155]

TEST ( StlFind  ,
NotFound   
)

Definition at line 293 of file ah-stl-functional_test.cc.

References Aleph::stl_find().

◆ TEST() [58/155]

TEST ( StlFindIndex  ,
Found   
)

Definition at line 310 of file ah-stl-functional_test.cc.

References Aleph::stl_find_index().

◆ TEST() [59/155]

TEST ( StlFindLast  ,
Found   
)

Definition at line 301 of file ah-stl-functional_test.cc.

References Aleph::stl_find_last().

◆ TEST() [60/155]

TEST ( StlFindMapi  ,
Found   
)

Definition at line 319 of file ah-stl-functional_test.cc.

References Aleph::stl_find_mapi().

◆ TEST() [61/155]

TEST ( StlFirst  ,
Basic   
)

Definition at line 412 of file ah-stl-functional_test.cc.

References Aleph::stl_first().

◆ TEST() [62/155]

TEST ( StlFirst  ,
Empty   
)

Definition at line 421 of file ah-stl-functional_test.cc.

References Aleph::stl_first().

◆ TEST() [63/155]

TEST ( StlFlatMap  ,
Basic   
)

Definition at line 693 of file ah-stl-functional_test.cc.

References Aleph::stl_flat_map().

◆ TEST() [64/155]

TEST ( StlFlatten  ,
Basic   
)

Definition at line 682 of file ah-stl-functional_test.cc.

References Aleph::stl_flatten().

◆ TEST() [65/155]

TEST ( StlFoldl  ,
Product   
)

Definition at line 195 of file ah-stl-functional_test.cc.

References Aleph::product(), and Aleph::stl_foldl().

◆ TEST() [66/155]

TEST ( StlFoldl  ,
Sum   
)

Definition at line 188 of file ah-stl-functional_test.cc.

References Aleph::stl_foldl(), and Aleph::sum().

◆ TEST() [67/155]

TEST ( StlFoldlForwarding  ,
AccumulatorByValue   
)

Definition at line 1284 of file ah-stl-functional_test.cc.

References Aleph::stl_foldl(), and w.

◆ TEST() [68/155]

TEST ( StlFoldr  ,
ListConstruction   
)

Definition at line 210 of file ah-stl-functional_test.cc.

References Aleph::stl_foldr().

◆ TEST() [69/155]

TEST ( StlFoldr  ,
Subtraction   
)

Definition at line 202 of file ah-stl-functional_test.cc.

References Aleph::stl_foldr().

◆ TEST() [70/155]

TEST ( StlForEach  ,
Basic   
)

Definition at line 112 of file ah-stl-functional_test.cc.

References Aleph::stl_for_each(), and Aleph::sum().

◆ TEST() [71/155]

TEST ( StlForEachIndexed  ,
Basic   
)

Definition at line 120 of file ah-stl-functional_test.cc.

References Aleph::stl_for_each_indexed().

◆ TEST() [72/155]

TEST ( StlForwardListCompat  ,
Distinct   
)

Definition at line 1530 of file ah-stl-functional_test.cc.

References Aleph::stl_distinct().

◆ TEST() [73/155]

TEST ( StlForwardListCompat  ,
Drop   
)

Definition at line 1573 of file ah-stl-functional_test.cc.

References Aleph::stl_drop().

◆ TEST() [74/155]

TEST ( StlForwardListCompat  ,
Filter   
)

Definition at line 1513 of file ah-stl-functional_test.cc.

References Aleph::stl_filter().

◆ TEST() [75/155]

TEST ( StlForwardListCompat  ,
Foldl   
)

Definition at line 1522 of file ah-stl-functional_test.cc.

References Aleph::stl_foldl(), and Aleph::sum().

◆ TEST() [76/155]

TEST ( StlForwardListCompat  ,
GroupBy   
)

Definition at line 1546 of file ah-stl-functional_test.cc.

References Aleph::stl_group_by().

◆ TEST() [77/155]

TEST ( StlForwardListCompat  ,
Last   
)

Definition at line 1554 of file ah-stl-functional_test.cc.

References Aleph::stl_last().

◆ TEST() [78/155]

TEST ( StlForwardListCompat  ,
Map   
)

Definition at line 1503 of file ah-stl-functional_test.cc.

References Aleph::stl_map().

◆ TEST() [79/155]

TEST ( StlForwardListCompat  ,
TakeLast   
)

Definition at line 1563 of file ah-stl-functional_test.cc.

References Aleph::stl_take_last().

◆ TEST() [80/155]

TEST ( StlForwardListCompat  ,
Tally   
)

Definition at line 1538 of file ah-stl-functional_test.cc.

References Aleph::stl_tally().

◆ TEST() [81/155]

TEST ( StlFunctional  ,
WorksWithDeque   
)

Definition at line 752 of file ah-stl-functional_test.cc.

References Aleph::stl_filter().

◆ TEST() [82/155]

TEST ( StlFunctional  ,
WorksWithList   
)

◆ TEST() [83/155]

TEST ( StlGenerate  ,
Basic   
)

Definition at line 99 of file ah-stl-functional_test.cc.

References r, and Aleph::stl_generate().

◆ TEST() [84/155]

TEST ( StlGroup  ,
Basic   
)

Definition at line 711 of file ah-stl-functional_test.cc.

References Aleph::size(), and Aleph::stl_group().

◆ TEST() [85/155]

TEST ( StlGroupBy  ,
Basic   
)

Definition at line 723 of file ah-stl-functional_test.cc.

References Aleph::stl_group_by().

◆ TEST() [86/155]

TEST ( StlGroupByContainerTypes  ,
List   
)

Definition at line 1320 of file ah-stl-functional_test.cc.

References l, and Aleph::stl_group_by().

◆ TEST() [87/155]

TEST ( StlGroupByCustomType  ,
PointsByQuadrant   
)

Definition at line 1165 of file ah-stl-functional_test.cc.

References Aleph::stl_group_by().

◆ TEST() [88/155]

TEST ( StlGroupByEdgeCases  ,
AllSameKey   
)

Definition at line 1055 of file ah-stl-functional_test.cc.

References Aleph::stl_group_by().

◆ TEST() [89/155]

TEST ( StlGroupByEdgeCases  ,
EmptyContainer   
)

Definition at line 1039 of file ah-stl-functional_test.cc.

References Aleph::stl_group_by().

◆ TEST() [90/155]

TEST ( StlGroupByEdgeCases  ,
SingleElement   
)

Definition at line 1046 of file ah-stl-functional_test.cc.

References Aleph::stl_group_by().

◆ TEST() [91/155]

TEST ( StlGroupByOrder  ,
PreservesFirstOccurrence   
)

Definition at line 1376 of file ah-stl-functional_test.cc.

References Aleph::stl_group_by().

◆ TEST() [92/155]

TEST ( StlGroupByPerformance  ,
LargeContainerUsesHashPath   
)

Definition at line 974 of file ah-stl-functional_test.cc.

References Aleph::stl_group_by().

◆ TEST() [93/155]

TEST ( StlGroupByStrings  ,
ByFirstChar   
)

Definition at line 1422 of file ah-stl-functional_test.cc.

References Aleph::stl_group_by().

◆ TEST() [94/155]

TEST ( StlGroupByStrings  ,
ByLength   
)

Definition at line 1414 of file ah-stl-functional_test.cc.

References Aleph::stl_group_by().

◆ TEST() [95/155]

TEST ( StlInit  ,
Basic   
)

Definition at line 887 of file ah-stl-functional_test.cc.

References Aleph::stl_init().

◆ TEST() [96/155]

TEST ( StlIntersperse  ,
Basic   
)

Definition at line 861 of file ah-stl-functional_test.cc.

References Aleph::stl_intersperse().

◆ TEST() [97/155]

TEST ( StlLast  ,
Basic   
)

Definition at line 429 of file ah-stl-functional_test.cc.

References Aleph::stl_last().

◆ TEST() [98/155]

TEST ( StlLinspace  ,
Basic   
)

Definition at line 83 of file ah-stl-functional_test.cc.

References r, and Aleph::stl_linspace().

◆ TEST() [99/155]

TEST ( StlMap  ,
Basic   
)

Definition at line 132 of file ah-stl-functional_test.cc.

References Aleph::stl_map().

◆ TEST() [100/155]

TEST ( StlMap  ,
TypeChange   
)

Definition at line 143 of file ah-stl-functional_test.cc.

References Aleph::stl_map().

◆ TEST() [101/155]

TEST ( StlMapForwarding  ,
LambdaWithCapture   
)

Definition at line 1254 of file ah-stl-functional_test.cc.

References Aleph::prefix(), and Aleph::stl_map().

◆ TEST() [102/155]

TEST ( StlMapi  ,
Basic   
)

Definition at line 152 of file ah-stl-functional_test.cc.

References Aleph::stl_mapi().

◆ TEST() [103/155]

TEST ( StlMax  ,
Basic   
)

Definition at line 460 of file ah-stl-functional_test.cc.

References Aleph::stl_max().

◆ TEST() [104/155]

TEST ( StlMaxBy  ,
Basic   
)

Definition at line 488 of file ah-stl-functional_test.cc.

References Aleph::stl_max_by().

◆ TEST() [105/155]

TEST ( StlMem  ,
Found   
)

Definition at line 332 of file ah-stl-functional_test.cc.

References Aleph::stl_mem().

◆ TEST() [106/155]

TEST ( StlMin  ,
Basic   
)

Definition at line 451 of file ah-stl-functional_test.cc.

References Aleph::stl_min().

◆ TEST() [107/155]

TEST ( StlMinBy  ,
Basic   
)

Definition at line 479 of file ah-stl-functional_test.cc.

References Aleph::stl_min_by().

◆ TEST() [108/155]

TEST ( StlMinMax  ,
Basic   
)

Definition at line 469 of file ah-stl-functional_test.cc.

References Aleph::stl_min_max().

◆ TEST() [109/155]

TEST ( StlNone  ,
Basic   
)

Definition at line 274 of file ah-stl-functional_test.cc.

References Aleph::stl_none().

◆ TEST() [110/155]

TEST ( StlNonHashable  ,
DistinctLarge   
)

Definition at line 1609 of file ah-stl-functional_test.cc.

References Aleph::stl_distinct().

◆ TEST() [111/155]

TEST ( StlNonHashable  ,
DistinctSmall   
)

Definition at line 1601 of file ah-stl-functional_test.cc.

References Aleph::stl_distinct().

◆ TEST() [112/155]

TEST ( StlNonHashable  ,
GroupByWithNonHashableKey   
)

Definition at line 1636 of file ah-stl-functional_test.cc.

References Aleph::stl_group_by().

◆ TEST() [113/155]

TEST ( StlNonHashable  ,
TallySmall   
)

Definition at line 1623 of file ah-stl-functional_test.cc.

References Aleph::stl_tally().

◆ TEST() [114/155]

TEST ( StlNth  ,
Basic   
)

Definition at line 438 of file ah-stl-functional_test.cc.

References Aleph::stl_nth().

◆ TEST() [115/155]

TEST ( StlPartition  ,
Basic   
)

Definition at line 517 of file ah-stl-functional_test.cc.

References Aleph::stl_partition().

◆ TEST() [116/155]

TEST ( StlPermutations  ,
Basic   
)

Definition at line 764 of file ah-stl-functional_test.cc.

References Aleph::stl_permutations().

◆ TEST() [117/155]

TEST ( StlPermutations  ,
TraverseWithStop   
)

◆ TEST() [118/155]

TEST ( StlPowerSet  ,
Basic   
)

Definition at line 826 of file ah-stl-functional_test.cc.

References Aleph::stl_power_set().

◆ TEST() [119/155]

TEST ( StlPowerSetOverflow  ,
ThrowsForLargeContainer   
)

Definition at line 1840 of file ah-stl-functional_test.cc.

References Aleph::stl_power_set().

◆ TEST() [120/155]

TEST ( StlPowerSetOverflow  ,
WorksForSmallContainer   
)

Definition at line 1849 of file ah-stl-functional_test.cc.

References Aleph::stl_power_set().

◆ TEST() [121/155]

TEST ( StlProduct  ,
Basic   
)

Definition at line 507 of file ah-stl-functional_test.cc.

References Aleph::stl_product().

◆ TEST() [122/155]

TEST ( StlRange  ,
BasicRange   
)

Definition at line 59 of file ah-stl-functional_test.cc.

References r, and Aleph::stl_range().

◆ TEST() [123/155]

TEST ( StlRange  ,
RangeWithStep   
)

Definition at line 67 of file ah-stl-functional_test.cc.

References r, and Aleph::stl_range().

◆ TEST() [124/155]

TEST ( StlRange  ,
SingleArgRange   
)

Definition at line 75 of file ah-stl-functional_test.cc.

References r, and Aleph::stl_range().

◆ TEST() [125/155]

TEST ( StlReject  ,
Basic   
)

Definition at line 917 of file ah-stl-functional_test.cc.

References Aleph::stl_reject().

◆ TEST() [126/155]

TEST ( StlRep  ,
Basic   
)

Definition at line 91 of file ah-stl-functional_test.cc.

References r, and Aleph::stl_rep().

◆ TEST() [127/155]

TEST ( StlReverse  ,
Basic   
)

Definition at line 614 of file ah-stl-functional_test.cc.

References Aleph::stl_reverse().

◆ TEST() [128/155]

TEST ( StlScanLeft  ,
RunningSum   
)

Definition at line 220 of file ah-stl-functional_test.cc.

References Aleph::stl_scan_left().

◆ TEST() [129/155]

TEST ( StlScanRight  ,
Basic   
)

Definition at line 233 of file ah-stl-functional_test.cc.

References Aleph::stl_scan_right().

◆ TEST() [130/155]

TEST ( StlSlidingWindow  ,
Basic   
)

Definition at line 839 of file ah-stl-functional_test.cc.

References Aleph::stl_sliding_window().

◆ TEST() [131/155]

TEST ( StlSort  ,
Basic   
)

Definition at line 623 of file ah-stl-functional_test.cc.

References Aleph::stl_sort().

◆ TEST() [132/155]

TEST ( StlSortBy  ,
Basic   
)

Definition at line 632 of file ah-stl-functional_test.cc.

References Aleph::stl_sort_by().

◆ TEST() [133/155]

TEST ( StlSpan  ,
Basic   
)

Definition at line 878 of file ah-stl-functional_test.cc.

References Aleph::stl_span().

◆ TEST() [134/155]

TEST ( StlSplitAt  ,
Basic   
)

Definition at line 869 of file ah-stl-functional_test.cc.

References Aleph::stl_split_at().

◆ TEST() [135/155]

TEST ( StlStatefulCallable  ,
AllPreservesState   
)

Definition at line 1730 of file ah-stl-functional_test.cc.

References Aleph::stl_all().

◆ TEST() [136/155]

TEST ( StlStatefulCallable  ,
ExistsStopsEarly   
)

Definition at line 1744 of file ah-stl-functional_test.cc.

References Aleph::stl_exists().

◆ TEST() [137/155]

TEST ( StlStatefulCallable  ,
FilterPreservesState   
)

Definition at line 1687 of file ah-stl-functional_test.cc.

References pred, and Aleph::stl_filter().

◆ TEST() [138/155]

TEST ( StlStatefulCallable  ,
ForEachPreservesState   
)

Definition at line 1713 of file ah-stl-functional_test.cc.

References Aleph::stl_for_each(), and Aleph::sum().

◆ TEST() [139/155]

TEST ( StlStatefulCallable  ,
MapPreservesState   
)

Definition at line 1700 of file ah-stl-functional_test.cc.

References Aleph::stl_map().

◆ TEST() [140/155]

TEST ( StlSum  ,
Basic   
)

Definition at line 501 of file ah-stl-functional_test.cc.

References Aleph::stl_sum().

◆ TEST() [141/155]

TEST ( StlTail  ,
Basic   
)

Definition at line 895 of file ah-stl-functional_test.cc.

References Aleph::stl_tail().

◆ TEST() [142/155]

TEST ( StlTake  ,
Basic   
)

Definition at line 360 of file ah-stl-functional_test.cc.

References Aleph::stl_take().

◆ TEST() [143/155]

TEST ( StlTakeLast  ,
Basic   
)

Definition at line 380 of file ah-stl-functional_test.cc.

References Aleph::stl_take_last().

◆ TEST() [144/155]

TEST ( StlTakeWhile  ,
Basic   
)

Definition at line 390 of file ah-stl-functional_test.cc.

References Aleph::stl_take_while().

◆ TEST() [145/155]

TEST ( StlTally  ,
Basic   
)

Definition at line 903 of file ah-stl-functional_test.cc.

References Aleph::stl_tally().

◆ TEST() [146/155]

TEST ( StlTallyContainerTypes  ,
List   
)

Definition at line 1313 of file ah-stl-functional_test.cc.

References l, and Aleph::stl_tally().

◆ TEST() [147/155]

TEST ( StlTallyCustomType  ,
Points   
)

Definition at line 1152 of file ah-stl-functional_test.cc.

References Aleph::stl_tally().

◆ TEST() [148/155]

TEST ( StlTallyEdgeCases  ,
EmptyContainer   
)

Definition at line 1023 of file ah-stl-functional_test.cc.

References Aleph::stl_tally().

◆ TEST() [149/155]

TEST ( StlTallyEdgeCases  ,
SingleElement   
)

Definition at line 1030 of file ah-stl-functional_test.cc.

References Aleph::stl_tally().

◆ TEST() [150/155]

TEST ( StlTallyOrder  ,
PreservesFirstOccurrence   
)

Definition at line 1360 of file ah-stl-functional_test.cc.

References Aleph::stl_tally().

◆ TEST() [151/155]

TEST ( StlTallyPerformance  ,
LargeContainerUsesHashPath   
)

Definition at line 959 of file ah-stl-functional_test.cc.

References Aleph::count(), and Aleph::stl_tally().

◆ TEST() [152/155]

TEST ( StlTallySmall  ,
UsesLinearPath   
)

Definition at line 1079 of file ah-stl-functional_test.cc.

References Aleph::stl_tally().

◆ TEST() [153/155]

TEST ( StlUnique  ,
Basic   
)

Definition at line 647 of file ah-stl-functional_test.cc.

References Aleph::stl_unique().

◆ TEST() [154/155]

TEST ( StlUnzipPairs  ,
Basic   
)

Definition at line 542 of file ah-stl-functional_test.cc.

References Aleph::stl_unzip_pairs().

◆ TEST() [155/155]

TEST ( StlZipToPairs  ,
Basic   
)

Definition at line 530 of file ah-stl-functional_test.cc.

References Aleph::stl_zip_to_pairs().