Aleph-w 3.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 <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 1857 of file ah-stl-functional_test.cc.

References Aleph::maps().

◆ TEST() [1/155]

TEST ( StlAll  ,
AllTrue   
)

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

References Aleph::maps(), and Aleph::stl_all().

◆ TEST() [2/155]

TEST ( StlAll  ,
SomeFalse   
)

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

References Aleph::maps(), and Aleph::stl_all().

◆ TEST() [3/155]

TEST ( StlArrangements  ,
ChooseTwo   
)

◆ TEST() [4/155]

TEST ( StlCartesianProduct  ,
Basic   
)

◆ TEST() [5/155]

TEST ( StlChunks  ,
Basic   
)

◆ TEST() [6/155]

TEST ( StlCombinations  ,
ChooseThree   
)

◆ TEST() [7/155]

TEST ( StlCombinations  ,
ChooseTwo   
)

◆ TEST() [8/155]

TEST ( StlCompare  ,
Equal   
)

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

References Aleph::maps(), and Aleph::stl_compare().

◆ TEST() [9/155]

TEST ( StlCompare  ,
Greater   
)

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

References Aleph::maps(), and Aleph::stl_compare().

◆ TEST() [10/155]

TEST ( StlCompare  ,
Less   
)

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

References Aleph::maps(), and Aleph::stl_compare().

◆ TEST() [11/155]

TEST ( StlComposition  ,
DistinctThenMap   
)

◆ TEST() [12/155]

TEST ( StlComposition  ,
FilterThenDistinct   
)

◆ TEST() [13/155]

TEST ( StlComposition  ,
GroupByThenMap   
)

◆ TEST() [14/155]

TEST ( StlConcat  ,
Basic   
)

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

References Aleph::maps(), and Aleph::stl_concat().

◆ TEST() [15/155]

TEST ( StlCount  ,
Basic   
)

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

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

◆ TEST() [16/155]

TEST ( StlCountValue  ,
Basic   
)

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

References Aleph::maps(), and Aleph::stl_count_value().

◆ TEST() [17/155]

TEST ( StlDistinct  ,
Basic   
)

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

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

◆ TEST() [18/155]

TEST ( StlDistinctBoundary  ,
ExactlyAtThreshold   
)

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

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

◆ TEST() [19/155]

TEST ( StlDistinctBoundary  ,
JustAboveThreshold   
)

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

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

◆ TEST() [20/155]

TEST ( StlDistinctBoundary  ,
JustBelowThreshold   
)

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

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

◆ TEST() [21/155]

TEST ( StlDistinctContainerTypes  ,
Deque   
)

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

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

◆ TEST() [22/155]

TEST ( StlDistinctContainerTypes  ,
List   
)

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

References l, Aleph::maps(), and Aleph::stl_distinct().

◆ TEST() [23/155]

TEST ( StlDistinctCustomType  ,
PointsLarge   
)

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

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

◆ TEST() [24/155]

TEST ( StlDistinctCustomType  ,
PointsSmall   
)

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

References Aleph::maps(), Aleph::stl_distinct(), and y.

◆ TEST() [25/155]

TEST ( StlDistinctEdgeCases  ,
AllSame   
)

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

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

◆ TEST() [26/155]

TEST ( StlDistinctEdgeCases  ,
AllUnique   
)

◆ TEST() [27/155]

TEST ( StlDistinctEdgeCases  ,
EmptyContainer   
)

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

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

◆ TEST() [28/155]

TEST ( StlDistinctEdgeCases  ,
SingleElement   
)

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

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

◆ TEST() [29/155]

TEST ( StlDistinctOrder  ,
PreservesFirstOccurrence   
)

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

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

◆ TEST() [30/155]

TEST ( StlDistinctOrder  ,
PreservesFirstOccurrenceLarge   
)

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

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

◆ TEST() [31/155]

TEST ( StlDistinctPerformance  ,
LargeContainerUsesHashPath   
)

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

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

◆ TEST() [32/155]

TEST ( StlDistinctPerformance  ,
VeryLargeContainer   
)

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

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

◆ TEST() [33/155]

TEST ( StlDistinctSmall  ,
UsesLinearPath   
)

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

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

◆ TEST() [34/155]

TEST ( StlDistinctStrings  ,
Basic   
)

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

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

◆ TEST() [35/155]

TEST ( StlDistinctStrings  ,
Large   
)

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

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

◆ TEST() [36/155]

TEST ( StlDrop  ,
Basic   
)

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

References Aleph::maps(), and Aleph::stl_drop().

◆ TEST() [37/155]

TEST ( StlDropWhile  ,
Basic   
)

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

References Aleph::maps(), and Aleph::stl_drop_while().

◆ TEST() [38/155]

TEST ( StlEmptyContainer  ,
ChunksReturnsEmpty   
)

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

References Aleph::maps(), and Aleph::stl_chunks().

◆ TEST() [39/155]

TEST ( StlEmptyContainer  ,
InterspersReturnsEmpty   
)

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

References Aleph::maps(), and Aleph::stl_intersperse().

◆ TEST() [40/155]

TEST ( StlEmptyContainer  ,
LastReturnsNullopt   
)

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

References Aleph::maps(), and Aleph::stl_last().

◆ TEST() [41/155]

TEST ( StlEmptyContainer  ,
MaxReturnsNullopt   
)

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

References Aleph::maps(), and Aleph::stl_max().

◆ TEST() [42/155]

TEST ( StlEmptyContainer  ,
MinReturnsNullopt   
)

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

References Aleph::maps(), and Aleph::stl_min().

◆ TEST() [43/155]

TEST ( StlEmptyContainer  ,
ProductReturnsZero   
)

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

References Aleph::maps(), and Aleph::stl_product().

◆ TEST() [44/155]

TEST ( StlEmptyContainer  ,
ScanLeftReturnsInit   
)

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

References Aleph::maps(), and Aleph::stl_scan_left().

◆ TEST() [45/155]

TEST ( StlEmptyContainer  ,
ScanRightReturnsInit   
)

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

References Aleph::maps(), and Aleph::stl_scan_right().

◆ TEST() [46/155]

TEST ( StlEmptyContainer  ,
SlidingWindowReturnsEmpty   
)

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

References Aleph::maps(), and Aleph::stl_sliding_window().

◆ TEST() [47/155]

TEST ( StlEmptyContainer  ,
SumReturnsZero   
)

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

References Aleph::maps(), and Aleph::stl_sum().

◆ TEST() [48/155]

TEST ( StlEnumerateToPairs  ,
Basic   
)

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

References Aleph::maps(), and Aleph::stl_enumerate_to_pairs().

◆ TEST() [49/155]

TEST ( StlEqual  ,
Equal   
)

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

References Aleph::maps(), and Aleph::stl_equal().

◆ TEST() [50/155]

TEST ( StlEqual  ,
NotEqual   
)

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

References Aleph::maps(), and Aleph::stl_equal().

◆ TEST() [51/155]

TEST ( StlExists  ,
NoneTrue   
)

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

References Aleph::maps(), and Aleph::stl_exists().

◆ TEST() [52/155]

TEST ( StlExists  ,
SomeTrue   
)

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

References Aleph::maps(), and Aleph::stl_exists().

◆ TEST() [53/155]

TEST ( StlFilter  ,
Basic   
)

◆ TEST() [54/155]

TEST ( StlFilterForwarding  ,
MutableLambda   
)

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

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

◆ TEST() [55/155]

TEST ( StlFilteri  ,
EvenIndices   
)

◆ TEST() [56/155]

TEST ( StlFind  ,
Found   
)

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

References Aleph::maps(), and Aleph::stl_find().

◆ TEST() [57/155]

TEST ( StlFind  ,
NotFound   
)

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

References Aleph::maps(), and Aleph::stl_find().

◆ TEST() [58/155]

TEST ( StlFindIndex  ,
Found   
)

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

References Aleph::maps(), and Aleph::stl_find_index().

◆ TEST() [59/155]

TEST ( StlFindLast  ,
Found   
)

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

References Aleph::maps(), and Aleph::stl_find_last().

◆ TEST() [60/155]

TEST ( StlFindMapi  ,
Found   
)

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

References Aleph::maps(), and Aleph::stl_find_mapi().

◆ TEST() [61/155]

TEST ( StlFirst  ,
Basic   
)

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

References Aleph::maps(), and Aleph::stl_first().

◆ TEST() [62/155]

TEST ( StlFirst  ,
Empty   
)

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

References Aleph::maps(), and Aleph::stl_first().

◆ TEST() [63/155]

TEST ( StlFlatMap  ,
Basic   
)

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

References Aleph::maps(), and Aleph::stl_flat_map().

◆ TEST() [64/155]

TEST ( StlFlatten  ,
Basic   
)

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

References Aleph::maps(), and Aleph::stl_flatten().

◆ TEST() [65/155]

TEST ( StlFoldl  ,
Product   
)

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

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

◆ TEST() [66/155]

TEST ( StlFoldl  ,
Sum   
)

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

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

◆ TEST() [67/155]

TEST ( StlFoldlForwarding  ,
AccumulatorByValue   
)

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

References Aleph::maps(), Aleph::stl_foldl(), and w.

◆ TEST() [68/155]

TEST ( StlFoldr  ,
ListConstruction   
)

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

References Aleph::maps(), and Aleph::stl_foldr().

◆ TEST() [69/155]

TEST ( StlFoldr  ,
Subtraction   
)

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

References Aleph::maps(), and Aleph::stl_foldr().

◆ TEST() [70/155]

TEST ( StlForEach  ,
Basic   
)

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

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

◆ TEST() [71/155]

TEST ( StlForEachIndexed  ,
Basic   
)

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

References Aleph::maps(), and Aleph::stl_for_each_indexed().

◆ TEST() [72/155]

TEST ( StlForwardListCompat  ,
Distinct   
)

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

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

◆ TEST() [73/155]

TEST ( StlForwardListCompat  ,
Drop   
)

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

References Aleph::maps(), and Aleph::stl_drop().

◆ TEST() [74/155]

TEST ( StlForwardListCompat  ,
Filter   
)

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

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

◆ TEST() [75/155]

TEST ( StlForwardListCompat  ,
Foldl   
)

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

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

◆ TEST() [76/155]

TEST ( StlForwardListCompat  ,
GroupBy   
)

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

References Aleph::maps(), and Aleph::stl_group_by().

◆ TEST() [77/155]

TEST ( StlForwardListCompat  ,
Last   
)

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

References Aleph::maps(), and Aleph::stl_last().

◆ TEST() [78/155]

TEST ( StlForwardListCompat  ,
Map   
)

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

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

◆ TEST() [79/155]

TEST ( StlForwardListCompat  ,
TakeLast   
)

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

References Aleph::maps(), and Aleph::stl_take_last().

◆ TEST() [80/155]

TEST ( StlForwardListCompat  ,
Tally   
)

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

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

◆ TEST() [81/155]

TEST ( StlFunctional  ,
WorksWithDeque   
)

◆ TEST() [82/155]

TEST ( StlFunctional  ,
WorksWithList   
)

◆ TEST() [83/155]

TEST ( StlGenerate  ,
Basic   
)

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

References Aleph::maps(), and Aleph::stl_generate().

◆ TEST() [84/155]

TEST ( StlGroup  ,
Basic   
)

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

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

◆ TEST() [85/155]

TEST ( StlGroupBy  ,
Basic   
)

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

References Aleph::maps(), and Aleph::stl_group_by().

◆ TEST() [86/155]

TEST ( StlGroupByContainerTypes  ,
List   
)

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

References l, Aleph::maps(), and Aleph::stl_group_by().

◆ TEST() [87/155]

TEST ( StlGroupByCustomType  ,
PointsByQuadrant   
)

◆ TEST() [88/155]

TEST ( StlGroupByEdgeCases  ,
AllSameKey   
)

◆ TEST() [89/155]

TEST ( StlGroupByEdgeCases  ,
EmptyContainer   
)

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

References Aleph::maps(), and Aleph::stl_group_by().

◆ TEST() [90/155]

TEST ( StlGroupByEdgeCases  ,
SingleElement   
)

◆ TEST() [91/155]

TEST ( StlGroupByOrder  ,
PreservesFirstOccurrence   
)

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

References Aleph::maps(), and Aleph::stl_group_by().

◆ TEST() [92/155]

TEST ( StlGroupByPerformance  ,
LargeContainerUsesHashPath   
)

◆ TEST() [93/155]

TEST ( StlGroupByStrings  ,
ByFirstChar   
)

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

References Aleph::maps(), and Aleph::stl_group_by().

◆ TEST() [94/155]

TEST ( StlGroupByStrings  ,
ByLength   
)

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

References Aleph::maps(), and Aleph::stl_group_by().

◆ TEST() [95/155]

TEST ( StlInit  ,
Basic   
)

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

References Aleph::maps(), and Aleph::stl_init().

◆ TEST() [96/155]

TEST ( StlIntersperse  ,
Basic   
)

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

References Aleph::maps(), and Aleph::stl_intersperse().

◆ TEST() [97/155]

TEST ( StlLast  ,
Basic   
)

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

References Aleph::maps(), and Aleph::stl_last().

◆ TEST() [98/155]

TEST ( StlLinspace  ,
Basic   
)

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

References Aleph::maps(), and Aleph::stl_linspace().

◆ TEST() [99/155]

TEST ( StlMap  ,
Basic   
)

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

References Aleph::maps(), Aleph::HTList::size(), and Aleph::stl_map().

◆ TEST() [100/155]

TEST ( StlMap  ,
TypeChange   
)

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

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

◆ TEST() [101/155]

TEST ( StlMapForwarding  ,
LambdaWithCapture   
)

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

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

◆ TEST() [102/155]

TEST ( StlMapi  ,
Basic   
)

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

References Aleph::maps(), and Aleph::stl_mapi().

◆ TEST() [103/155]

TEST ( StlMax  ,
Basic   
)

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

References Aleph::maps(), and Aleph::stl_max().

◆ TEST() [104/155]

TEST ( StlMaxBy  ,
Basic   
)

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

References Aleph::maps(), and Aleph::stl_max_by().

◆ TEST() [105/155]

TEST ( StlMem  ,
Found   
)

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

References Aleph::maps(), and Aleph::stl_mem().

◆ TEST() [106/155]

TEST ( StlMin  ,
Basic   
)

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

References Aleph::maps(), and Aleph::stl_min().

◆ TEST() [107/155]

TEST ( StlMinBy  ,
Basic   
)

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

References Aleph::maps(), and Aleph::stl_min_by().

◆ TEST() [108/155]

TEST ( StlMinMax  ,
Basic   
)

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

References Aleph::maps(), and Aleph::stl_min_max().

◆ TEST() [109/155]

TEST ( StlNone  ,
Basic   
)

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

References Aleph::maps(), and Aleph::stl_none().

◆ TEST() [110/155]

TEST ( StlNonHashable  ,
DistinctLarge   
)

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

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

◆ TEST() [111/155]

TEST ( StlNonHashable  ,
DistinctSmall   
)

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

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

◆ TEST() [112/155]

TEST ( StlNonHashable  ,
GroupByWithNonHashableKey   
)

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

References Aleph::maps(), and Aleph::stl_group_by().

◆ TEST() [113/155]

TEST ( StlNonHashable  ,
TallySmall   
)

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

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

◆ TEST() [114/155]

TEST ( StlNth  ,
Basic   
)

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

References Aleph::maps(), and Aleph::stl_nth().

◆ TEST() [115/155]

TEST ( StlPartition  ,
Basic   
)

◆ TEST() [116/155]

TEST ( StlPermutations  ,
Basic   
)

◆ TEST() [117/155]

TEST ( StlPermutations  ,
TraverseWithStop   
)

◆ TEST() [118/155]

TEST ( StlPowerSet  ,
Basic   
)

◆ TEST() [119/155]

TEST ( StlPowerSetOverflow  ,
ThrowsForLargeContainer   
)

◆ TEST() [120/155]

TEST ( StlPowerSetOverflow  ,
WorksForSmallContainer   
)

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

References Aleph::maps(), and Aleph::stl_power_set().

◆ TEST() [121/155]

TEST ( StlProduct  ,
Basic   
)

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

References Aleph::maps(), and Aleph::stl_product().

◆ TEST() [122/155]

TEST ( StlRange  ,
BasicRange   
)

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

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

◆ TEST() [123/155]

TEST ( StlRange  ,
RangeWithStep   
)

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

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

◆ TEST() [124/155]

TEST ( StlRange  ,
SingleArgRange   
)

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

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

◆ TEST() [125/155]

TEST ( StlReject  ,
Basic   
)

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

References Aleph::maps(), and Aleph::stl_reject().

◆ TEST() [126/155]

TEST ( StlRep  ,
Basic   
)

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

References Aleph::maps(), and Aleph::stl_rep().

◆ TEST() [127/155]

TEST ( StlReverse  ,
Basic   
)

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

References Aleph::maps(), and Aleph::stl_reverse().

◆ TEST() [128/155]

TEST ( StlScanLeft  ,
RunningSum   
)

◆ TEST() [129/155]

TEST ( StlScanRight  ,
Basic   
)

◆ TEST() [130/155]

TEST ( StlSlidingWindow  ,
Basic   
)

◆ TEST() [131/155]

TEST ( StlSort  ,
Basic   
)

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

References Aleph::maps(), and Aleph::stl_sort().

◆ TEST() [132/155]

TEST ( StlSortBy  ,
Basic   
)

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

References Aleph::maps(), and Aleph::stl_sort_by().

◆ TEST() [133/155]

TEST ( StlSpan  ,
Basic   
)

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

References Aleph::maps(), and Aleph::stl_span().

◆ TEST() [134/155]

TEST ( StlSplitAt  ,
Basic   
)

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

References Aleph::maps(), and Aleph::stl_split_at().

◆ TEST() [135/155]

TEST ( StlStatefulCallable  ,
AllPreservesState   
)

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

References Aleph::maps(), and Aleph::stl_all().

◆ TEST() [136/155]

TEST ( StlStatefulCallable  ,
ExistsStopsEarly   
)

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

References Aleph::maps(), and Aleph::stl_exists().

◆ TEST() [137/155]

TEST ( StlStatefulCallable  ,
FilterPreservesState   
)

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

References Aleph::maps(), pred, and Aleph::stl_filter().

◆ TEST() [138/155]

TEST ( StlStatefulCallable  ,
ForEachPreservesState   
)

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

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

◆ TEST() [139/155]

TEST ( StlStatefulCallable  ,
MapPreservesState   
)

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

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

◆ TEST() [140/155]

TEST ( StlSum  ,
Basic   
)

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

References Aleph::maps(), and Aleph::stl_sum().

◆ TEST() [141/155]

TEST ( StlTail  ,
Basic   
)

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

References Aleph::maps(), and Aleph::stl_tail().

◆ TEST() [142/155]

TEST ( StlTake  ,
Basic   
)

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

References Aleph::maps(), and Aleph::stl_take().

◆ TEST() [143/155]

TEST ( StlTakeLast  ,
Basic   
)

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

References Aleph::maps(), and Aleph::stl_take_last().

◆ TEST() [144/155]

TEST ( StlTakeWhile  ,
Basic   
)

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

References Aleph::maps(), and Aleph::stl_take_while().

◆ TEST() [145/155]

TEST ( StlTally  ,
Basic   
)

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

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

◆ TEST() [146/155]

TEST ( StlTallyContainerTypes  ,
List   
)

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

References l, Aleph::maps(), and Aleph::stl_tally().

◆ TEST() [147/155]

TEST ( StlTallyCustomType  ,
Points   
)

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

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

◆ TEST() [148/155]

TEST ( StlTallyEdgeCases  ,
EmptyContainer   
)

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

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

◆ TEST() [149/155]

TEST ( StlTallyEdgeCases  ,
SingleElement   
)

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

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

◆ TEST() [150/155]

TEST ( StlTallyOrder  ,
PreservesFirstOccurrence   
)

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

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

◆ TEST() [151/155]

TEST ( StlTallyPerformance  ,
LargeContainerUsesHashPath   
)

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

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

◆ TEST() [152/155]

TEST ( StlTallySmall  ,
UsesLinearPath   
)

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

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

◆ TEST() [153/155]

TEST ( StlUnique  ,
Basic   
)

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

References Aleph::maps(), and Aleph::stl_unique().

◆ TEST() [154/155]

TEST ( StlUnzipPairs  ,
Basic   
)

◆ TEST() [155/155]

TEST ( StlZipToPairs  ,
Basic   
)

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

References Aleph::maps(), and Aleph::stl_zip_to_pairs().