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

Comprehensive test suite for ah-stl-utils.H. More...

#include <gtest/gtest.h>
#include <list>
#include <vector>
#include <set>
#include <string>
#include <tuple>
#include <ah-stl-utils.H>
#include <ahFunctional.H>
Include dependency graph for ah-stl-utils.cc:

Go to the source code of this file.

Functions

 TEST (VectorToDynList, EmptyVector)
 
 TEST (VectorToDynList, SingleElement)
 
 TEST (VectorToDynList, MultipleElements)
 
 TEST (VectorToDynList, StringVector)
 
 TEST (VectorToDynList, ToListAlias)
 
 TEST (RangeToDynList, VectorIterators)
 
 TEST (RangeToDynList, PartialRange)
 
 TEST (RangeToDynList, EmptyRange)
 
 TEST (RangeToDynList, ListIterators)
 
 TEST (ToArray, EmptyVector)
 
 TEST (ToArray, MultipleElements)
 
 TEST (ToVector, FromDynList)
 
 TEST (ToVector, EmptyDynList)
 
 TEST (ToVector, FromDynSetTree)
 
 TEST (MapVector, SquareElements)
 
 TEST (MapVector, TypeConversion)
 
 TEST (MapVector, EmptyVector)
 
 TEST (VariadicToVector, MultipleInts)
 
 TEST (VariadicToVector, SingleElement)
 
 TEST (VariadicToVector, MixedConvertibleTypes)
 
 TEST (VariadicToDynList, MultipleElements)
 
 TEST (VariadicToDynList, Strings)
 
 TEST (TupleForEach, SumElements)
 
 TEST (TupleForEach, CollectStrings)
 
 TEST (TupleForEach, EmptyTuple)
 
 TEST (TupleForEach, SingleElement)
 
 TEST (TupleToDynList, HomogeneousTuple)
 
 TEST (TupleToDynList, SingleElement)
 
 TEST (TupleToDynList, StringTuple)
 
 TEST (TupleToArray, HomogeneousTuple)
 
 TEST (StlContainerToDynList, FromStdVector)
 
 TEST (StlContainerToDynList, FromStdList)
 
 TEST (StlContainerToDynList, FromStdSet)
 
 TEST (StlContainerToDynList, Empty)
 
 TEST (ListConversions, ListToDynList)
 
 TEST (ListConversions, DynListToList)
 
 TEST (ListConversions, RoundTrip)
 
 TEST (ListConversions, Empty)
 
 TEST (DynArrayConversions, DynArrayToVector)
 
 TEST (DynArrayConversions, VectorToDynArray)
 
 TEST (DynArrayConversions, RoundTrip)
 
 TEST (DynArrayConversions, Empty)
 
 TEST (IndexTuple, MakeIndexTuple)
 
 TEST (IndexTuple, ToIndexTuple)
 
 TEST (EdgeCases, LargeVector)
 
 TEST (EdgeCases, ComplexType)
 
 TEST (EdgeCases, NestedContainers)
 
 TEST (EdgeCases, CopySemantics)
 

Detailed Description

Comprehensive test suite for ah-stl-utils.H.

Tests all conversion functions between Aleph-w containers and STL containers, tuple utilities, and variadic helpers.

Definition in file ah-stl-utils.cc.

Function Documentation

◆ TEST() [1/48]

TEST ( DynArrayConversions  ,
DynArrayToVector   
)

◆ TEST() [2/48]

TEST ( DynArrayConversions  ,
Empty   
)

◆ TEST() [3/48]

TEST ( DynArrayConversions  ,
RoundTrip   
)

◆ TEST() [4/48]

TEST ( DynArrayConversions  ,
VectorToDynArray   
)

Definition at line 408 of file ah-stl-utils.cc.

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

◆ TEST() [5/48]

TEST ( EdgeCases  ,
ComplexType   
)

◆ TEST() [6/48]

TEST ( EdgeCases  ,
CopySemantics   
)

◆ TEST() [7/48]

TEST ( EdgeCases  ,
LargeVector   
)

Definition at line 467 of file ah-stl-utils.cc.

References Aleph::maps(), N, Aleph::to_vector(), and Aleph::vector_to_DynList().

◆ TEST() [8/48]

TEST ( EdgeCases  ,
NestedContainers   
)

◆ TEST() [9/48]

TEST ( IndexTuple  ,
MakeIndexTuple   
)

Definition at line 440 of file ah-stl-utils.cc.

References Aleph::maps().

◆ TEST() [10/48]

TEST ( IndexTuple  ,
ToIndexTuple   
)

Definition at line 456 of file ah-stl-utils.cc.

References Aleph::maps().

◆ TEST() [11/48]

TEST ( ListConversions  ,
DynListToList   
)

Definition at line 358 of file ah-stl-utils.cc.

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

◆ TEST() [12/48]

TEST ( ListConversions  ,
Empty   
)

◆ TEST() [13/48]

TEST ( ListConversions  ,
ListToDynList   
)

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

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

◆ TEST() [14/48]

TEST ( ListConversions  ,
RoundTrip   
)

◆ TEST() [15/48]

TEST ( MapVector  ,
EmptyVector   
)

Definition at line 186 of file ah-stl-utils.cc.

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

◆ TEST() [16/48]

TEST ( MapVector  ,
SquareElements   
)

Definition at line 164 of file ah-stl-utils.cc.

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

◆ TEST() [17/48]

TEST ( MapVector  ,
TypeConversion   
)

Definition at line 176 of file ah-stl-utils.cc.

References Aleph::map_vector(), Aleph::maps(), and Aleph::to_string().

◆ TEST() [18/48]

TEST ( RangeToDynList  ,
EmptyRange   
)

Definition at line 88 of file ah-stl-utils.cc.

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

◆ TEST() [19/48]

TEST ( RangeToDynList  ,
ListIterators   
)

◆ TEST() [20/48]

TEST ( RangeToDynList  ,
PartialRange   
)

Definition at line 80 of file ah-stl-utils.cc.

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

◆ TEST() [21/48]

TEST ( RangeToDynList  ,
VectorIterators   
)

Definition at line 72 of file ah-stl-utils.cc.

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

◆ TEST() [22/48]

TEST ( StlContainerToDynList  ,
Empty   
)

Definition at line 339 of file ah-stl-utils.cc.

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

◆ TEST() [23/48]

TEST ( StlContainerToDynList  ,
FromStdList   
)

Definition at line 323 of file ah-stl-utils.cc.

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

◆ TEST() [24/48]

TEST ( StlContainerToDynList  ,
FromStdSet   
)

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

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

◆ TEST() [25/48]

TEST ( StlContainerToDynList  ,
FromStdVector   
)

Definition at line 315 of file ah-stl-utils.cc.

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

◆ TEST() [26/48]

TEST ( ToArray  ,
EmptyVector   
)

Definition at line 107 of file ah-stl-utils.cc.

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

◆ TEST() [27/48]

TEST ( ToArray  ,
MultipleElements   
)

Definition at line 114 of file ah-stl-utils.cc.

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

◆ TEST() [28/48]

TEST ( ToVector  ,
EmptyDynList   
)

Definition at line 139 of file ah-stl-utils.cc.

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

◆ TEST() [29/48]

TEST ( ToVector  ,
FromDynList   
)

Definition at line 128 of file ah-stl-utils.cc.

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

◆ TEST() [30/48]

TEST ( ToVector  ,
FromDynSetTree   
)

◆ TEST() [31/48]

TEST ( TupleForEach  ,
CollectStrings   
)

Definition at line 248 of file ah-stl-utils.cc.

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

◆ TEST() [32/48]

TEST ( TupleForEach  ,
EmptyTuple   
)

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

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

◆ TEST() [33/48]

TEST ( TupleForEach  ,
SingleElement   
)

Definition at line 264 of file ah-stl-utils.cc.

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

◆ TEST() [34/48]

TEST ( TupleForEach  ,
SumElements   
)

Definition at line 240 of file ah-stl-utils.cc.

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

◆ TEST() [35/48]

TEST ( TupleToArray  ,
HomogeneousTuple   
)

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

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

◆ TEST() [36/48]

TEST ( TupleToDynList  ,
HomogeneousTuple   
)

Definition at line 276 of file ah-stl-utils.cc.

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

◆ TEST() [37/48]

TEST ( TupleToDynList  ,
SingleElement   
)

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

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

◆ TEST() [38/48]

TEST ( TupleToDynList  ,
StringTuple   
)

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

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

◆ TEST() [39/48]

TEST ( VariadicToDynList  ,
MultipleElements   
)

Definition at line 222 of file ah-stl-utils.cc.

References Aleph::maps().

◆ TEST() [40/48]

TEST ( VariadicToDynList  ,
Strings   
)

Definition at line 229 of file ah-stl-utils.cc.

References Aleph::maps().

◆ TEST() [41/48]

TEST ( VariadicToVector  ,
MixedConvertibleTypes   
)

Definition at line 212 of file ah-stl-utils.cc.

References Aleph::maps().

◆ TEST() [42/48]

TEST ( VariadicToVector  ,
MultipleInts   
)

Definition at line 197 of file ah-stl-utils.cc.

References Aleph::maps().

◆ TEST() [43/48]

TEST ( VariadicToVector  ,
SingleElement   
)

Definition at line 205 of file ah-stl-utils.cc.

References Aleph::maps().

◆ TEST() [44/48]

TEST ( VectorToDynList  ,
EmptyVector   
)

Definition at line 27 of file ah-stl-utils.cc.

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

◆ TEST() [45/48]

TEST ( VectorToDynList  ,
MultipleElements   
)

Definition at line 43 of file ah-stl-utils.cc.

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

◆ TEST() [46/48]

TEST ( VectorToDynList  ,
SingleElement   
)

Definition at line 35 of file ah-stl-utils.cc.

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

◆ TEST() [47/48]

TEST ( VectorToDynList  ,
StringVector   
)

Definition at line 51 of file ah-stl-utils.cc.

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

◆ TEST() [48/48]

TEST ( VectorToDynList  ,
ToListAlias   
)

Definition at line 60 of file ah-stl-utils.cc.

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