|
Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
|
Tests for Ah Dry Mixin. More...
#include <gtest/gtest.h>#include <limits>#include <stdexcept>#include <vector>#include <string>#include <htlist.H>#include <ah-dry-mixin.H>#include <tpl_array.H>#include <tpl_dynArray.H>Go to the source code of this file.
Classes | |
| class | MixinVector< T > |
| Simple test container using std::vector internally but with Aleph mixins. More... | |
| class | MixinVector< T >::Iterator |
| struct | TakesModifiableItem |
| struct | TakesConstantItem |
| struct | Person |
| struct | NoOpType |
| struct | EqOnlyType |
| struct | LtOnlyType |
Concepts | |
| concept | TraversesWith |
| concept | TraversesWithTemporary |
| concept | TestsAllWith |
| concept | @684::Maps_To |
Functions | |
| TEST (TraverseMixin, BasicTraverse) | |
| TEST (TraverseMixin, TraverseEarlyStop) | |
| TEST (TraverseMixin, TraverseEmpty) | |
| TEST (TraverseMixin, ConstantContainerRejectsModifyingOperation) | |
| TEST (FunctionalMixin, ForEach) | |
| TEST (FunctionalMixin, MutableForEach) | |
| TEST (FunctionalMixin, AllPredicate) | |
| TEST (FunctionalMixin, AllEmpty) | |
| TEST (FunctionalMixin, ExistsPredicate) | |
| TEST (FunctionalMixin, ExistsEmpty) | |
| TEST (FunctionalMixin, Maps) | |
| TEST (FunctionalMixin, MapsTypeConversion) | |
| TEST (FunctionalMixin, MapsWithoutOperationCopiesTheItems) | |
| TEST (FunctionalMixin, MapsWithoutOperationConvertsEachItemOnce) | |
| TEST (FunctionalMixin, MapsWithoutOperationCopiesEachItemOnce) | |
| TEST (FunctionalMixin, MapsWithoutOperationIntoAContainerOfRvalues) | |
| TEST (FunctionalMixin, MapsWithoutOperationLetsACopyThrow) | |
| TEST (FunctionalMixin, Filter) | |
| TEST (FunctionalMixin, FilterNone) | |
| TEST (FunctionalMixin, Foldl) | |
| TEST (FunctionalMixin, FoldlEmpty) | |
| TEST (FunctionalMixin, Partition) | |
| TEST (FunctionalMixin, Length) | |
| TEST (FunctionalMixin, Rev) | |
| TEST (FunctionalMixin, Take) | |
| TEST (FunctionalMixin, Drop) | |
| TEST (LocateMixin, Nth) | |
| TEST (LocateMixin, NthWithLargestIndexThrows) | |
| TEST (LocateMixin, NthNe) | |
| TEST (LocateMixin, NthModify) | |
| TEST (LocateMixin, FindPtr) | |
| TEST (LocateMixin, FindPtrModify) | |
| TEST (LocateMixin, FindItem) | |
| TEST (KeysMixin, Keys) | |
| TEST (KeysMixin, Items) | |
| TEST (ChainedOps, FilterThenMap) | |
| TEST (ChainedOps, MapThenFold) | |
| TEST (ComplexTypes, StructOperations) | |
| TEST (FunctionalMixin, Sum) | |
| TEST (FunctionalMixin, SumEmpty) | |
| TEST (FunctionalMixin, SumStrings) | |
| TEST (FunctionalMixin, Product) | |
| TEST (FunctionalMixin, ProductEmpty) | |
| TEST (FunctionalMixin, Min) | |
| TEST (FunctionalMixin, MinEmpty) | |
| TEST (FunctionalMixin, MinSingle) | |
| TEST (FunctionalMixin, Max) | |
| TEST (FunctionalMixin, MaxEmpty) | |
| TEST (FunctionalMixin, MaxSingle) | |
| TEST (FunctionalMixin, MinByCustomComparator) | |
| TEST (FunctionalMixin, MaxByCustomComparator) | |
| TEST (FunctionalMixin, MinMaxWithNegatives) | |
| TEST (FunctionalMixin, HasValue) | |
| TEST (FunctionalMixin, HasValueEmpty) | |
| TEST (FunctionalMixin, HasValueStrings) | |
| TEST (FunctionalMixin, None) | |
| TEST (FunctionalMixin, NoneEmpty) | |
| TEST (FunctionalMixin, NoneLValuePredicate) | |
| TEST (FunctionalMixin, CountIf) | |
| TEST (FunctionalMixin, CountIfEmpty) | |
| TEST (FunctionalMixin, First) | |
| TEST (FunctionalMixin, FirstEmpty) | |
| TEST (FunctionalMixin, FirstOr) | |
| TEST (FunctionalMixin, Last) | |
| TEST (FunctionalMixin, LastEmpty) | |
| TEST (FunctionalMixin, LastOr) | |
| TEST (FunctionalMixin, FirstLastSingleElement) | |
| TEST (FunctionalMixin, Enumerate) | |
| TEST (FunctionalMixin, EnumerateEmpty) | |
| TEST (FunctionalMixin, FindIndex) | |
| TEST (FunctionalMixin, FindIndexEmpty) | |
| TEST (FunctionalMixin, IndexOf) | |
| TEST (FunctionalMixin, IndexOfStrings) | |
| TEST (ChainedOps, SumAfterFoldl) | |
| TEST (ChainedOps, MinMaxOnMixinVector) | |
| TEST (ChainedOps, EnumerateThenCountElements) | |
| TEST (StressTest, LargeContainer) | |
| TEST (StressTest, LargeEnumerate) | |
| TEST (ConstraintTest, MethodsWithoutConstraintsWork) | |
| TEST (ConstraintTest, EqualityOnlyType) | |
| TEST (ConstraintTest, LessThanOnlyType) | |
| TEST (FunctionalMixin, Unique) | |
| TEST (FunctionalMixin, UniqueEmpty) | |
| TEST (FunctionalMixin, UniqueSingleElement) | |
| TEST (FunctionalMixin, UniqueNoDuplicates) | |
| TEST (FunctionalMixin, UniqueBy) | |
| TEST (FunctionalMixin, Intersperse) | |
| TEST (FunctionalMixin, IntersperseEmpty) | |
| TEST (FunctionalMixin, IntersperseSingleElement) | |
| TEST (FunctionalMixin, IntersperseStrings) | |
| TEST (FunctionalMixin, Chunk) | |
| TEST (FunctionalMixin, ChunkExactDivision) | |
| TEST (FunctionalMixin, ChunkEmpty) | |
| TEST (FunctionalMixin, ChunkSizeZero) | |
| TEST (FunctionalMixin, ChunkLargerThanContainer) | |
| TEST (FunctionalMixin, Sliding) | |
| TEST (FunctionalMixin, SlidingWithStep) | |
| TEST (FunctionalMixin, SlidingEmpty) | |
| TEST (FunctionalMixin, SlidingSizeZero) | |
| TEST (FunctionalMixin, SlidingLargerThanContainer) | |
| TEST (FunctionalMixin, ToVector) | |
| TEST (FunctionalMixin, ToVectorEmpty) | |
| TEST (FunctionalMixin, ToDynlist) | |
| TEST (FunctionalMixin, ToDynlistEmpty) | |
| TEST (FunctionalMixin, ToDynlistRoundTrip) | |
| TEST (FunctionalMixin, Join) | |
| TEST (FunctionalMixin, JoinSingleElement) | |
| TEST (FunctionalMixin, JoinEmpty) | |
| TEST (FunctionalMixin, JoinStr) | |
| TEST (FunctionalMixin, JoinStrEmpty) | |
| TEST (FunctionalMixin, ZipWith) | |
| TEST (FunctionalMixin, ZipWithDifferentLengths) | |
| TEST (FunctionalMixin, ZipWithEmpty) | |
| TEST (FunctionalMixin, ZipWithBothEmpty) | |
| TEST (ChainedOps, UniqueVerify) | |
| TEST (ChainedOps, ChunkAndSum) | |
| TEST (DynListIntegration, ExistingMethodsWork) | |
| static Array< int > | make_array (std::initializer_list< int > vals) |
| static DynArray< int > | make_dynarray (std::initializer_list< int > vals) |
| TEST (EqualSequenceMethod, SizeMismatchReturnsFalse) | |
| TEST (EqualSequenceMethod, SelfComparisonReturnsTrue) | |
| TEST (EqualSequenceMethod, SameElementsDifferentOrderReturnsFalse) | |
| TEST (EqualSequenceMethod, DuplicateMultiplicityDifferenceReturnsFalse) | |
| TEST (EqualSequenceMethod, EqualContainersReturnTrue) | |
| TEST (EqualSequenceMethod, EmptyContainersAreEqual) | |
| TEST (EqualSequenceMethod, SingleElement) | |
| TEST (EqualSequenceMethod, LargeInputs) | |
Tests for Ah Dry Mixin.
Definition in file ah-dry-mixin_test.cc.
|
static |
Definition at line 1628 of file ah-dry-mixin_test.cc.
References Aleph::Array< T >::append().
|
static |
Definition at line 1637 of file ah-dry-mixin_test.cc.
References Aleph::DynArray< T >::append().
| TEST | ( | ChainedOps | , |
| ChunkAndSum | |||
| ) |
Definition at line 1579 of file ah-dry-mixin_test.cc.
References Aleph::FunctionalMixin< Derived, Type >::chunk(), and FunctionalMethods< Container, T >::foldl().
| TEST | ( | ChainedOps | , |
| EnumerateThenCountElements | |||
| ) |
Definition at line 1064 of file ah-dry-mixin_test.cc.
References Aleph::FunctionalMixin< Derived, Type >::enumerate().
| TEST | ( | ChainedOps | , |
| FilterThenMap | |||
| ) |
Definition at line 667 of file ah-dry-mixin_test.cc.
References Aleph::FunctionalMixin< Derived, Type >::filter(), and FunctionalMethods< Container, T >::maps().
| TEST | ( | ChainedOps | , |
| MapThenFold | |||
| ) |
Definition at line 682 of file ah-dry-mixin_test.cc.
References Aleph::FunctionalMixin< Derived, Type >::maps(), and Aleph::sum().
| TEST | ( | ChainedOps | , |
| MinMaxOnMixinVector | |||
| ) |
Definition at line 1056 of file ah-dry-mixin_test.cc.
References Aleph::FunctionalMixin< Derived, Type >::max(), and Aleph::FunctionalMixin< Derived, Type >::min().
| TEST | ( | ChainedOps | , |
| SumAfterFoldl | |||
| ) |
Definition at line 1043 of file ah-dry-mixin_test.cc.
References Aleph::FunctionalMixin< Derived, Type >::filter(), Aleph::sum(), and Aleph::FunctionalMixin< Derived, Type >::sum().
| TEST | ( | ChainedOps | , |
| UniqueVerify | |||
| ) |
Definition at line 1566 of file ah-dry-mixin_test.cc.
References Aleph::FunctionalMixin< Derived, Type >::unique().
| TEST | ( | ComplexTypes | , |
| StructOperations | |||
| ) |
Definition at line 704 of file ah-dry-mixin_test.cc.
References Person::age, MixinVector< T >::append(), Aleph::FunctionalMixin< Derived, Type >::filter(), Aleph::LocateMixin< Derived, Type >::find_ptr(), Aleph::FunctionalMixin< Derived, Type >::maps(), Person::name, and Aleph::sum().
| TEST | ( | ConstraintTest | , |
| EqualityOnlyType | |||
| ) |
Definition at line 1193 of file ah-dry-mixin_test.cc.
References MixinVector< T >::append(), Aleph::FunctionalMixin< Derived, Type >::has_value(), and Aleph::FunctionalMixin< Derived, Type >::index_of().
| TEST | ( | ConstraintTest | , |
| LessThanOnlyType | |||
| ) |
Definition at line 1217 of file ah-dry-mixin_test.cc.
References MixinVector< T >::append(), Aleph::FunctionalMixin< Derived, Type >::max(), and Aleph::FunctionalMixin< Derived, Type >::min().
| TEST | ( | ConstraintTest | , |
| MethodsWithoutConstraintsWork | |||
| ) |
Definition at line 1154 of file ah-dry-mixin_test.cc.
References MixinVector< T >::append(), Aleph::FunctionalMixin< Derived, Type >::count_if(), Aleph::FunctionalMixin< Derived, Type >::enumerate(), Aleph::FunctionalMixin< Derived, Type >::find_index(), Aleph::FunctionalMixin< Derived, Type >::first(), Aleph::FunctionalMixin< Derived, Type >::last(), and Aleph::FunctionalMixin< Derived, Type >::length().
| TEST | ( | DynListIntegration | , |
| ExistingMethodsWork | |||
| ) |
| TEST | ( | EqualSequenceMethod | , |
| DuplicateMultiplicityDifferenceReturnsFalse | |||
| ) |
Definition at line 1697 of file ah-dry-mixin_test.cc.
References EqualSequenceMethod< Container >::equal_to(), make_array(), and make_dynarray().
| TEST | ( | EqualSequenceMethod | , |
| EmptyContainersAreEqual | |||
| ) |
Definition at line 1733 of file ah-dry-mixin_test.cc.
References EqualSequenceMethod< Container >::equal_to().
| TEST | ( | EqualSequenceMethod | , |
| EqualContainersReturnTrue | |||
| ) |
Definition at line 1715 of file ah-dry-mixin_test.cc.
References EqualSequenceMethod< Container >::equal_to(), make_array(), and make_dynarray().
| TEST | ( | EqualSequenceMethod | , |
| LargeInputs | |||
| ) |
Definition at line 1767 of file ah-dry-mixin_test.cc.
References Aleph::DynArray< T >::append(), Aleph::Array< T >::append(), EqualSequenceMethod< Container >::equal_to(), and N.
| TEST | ( | EqualSequenceMethod | , |
| SameElementsDifferentOrderReturnsFalse | |||
| ) |
Definition at line 1679 of file ah-dry-mixin_test.cc.
References EqualSequenceMethod< Container >::equal_to(), make_array(), and make_dynarray().
| TEST | ( | EqualSequenceMethod | , |
| SelfComparisonReturnsTrue | |||
| ) |
Definition at line 1665 of file ah-dry-mixin_test.cc.
References EqualSequenceMethod< Container >::equal_to(), make_array(), and make_dynarray().
| TEST | ( | EqualSequenceMethod | , |
| SingleElement | |||
| ) |
Definition at line 1746 of file ah-dry-mixin_test.cc.
References EqualSequenceMethod< Container >::equal_to().
| TEST | ( | EqualSequenceMethod | , |
| SizeMismatchReturnsFalse | |||
| ) |
Definition at line 1645 of file ah-dry-mixin_test.cc.
References EqualSequenceMethod< Container >::equal_to(), make_array(), and make_dynarray().
| TEST | ( | FunctionalMixin | , |
| AllEmpty | |||
| ) |
Definition at line 218 of file ah-dry-mixin_test.cc.
References Aleph::FunctionalMixin< Derived, Type >::all().
| TEST | ( | FunctionalMixin | , |
| AllPredicate | |||
| ) |
Definition at line 210 of file ah-dry-mixin_test.cc.
References Aleph::FunctionalMixin< Derived, Type >::all().
| TEST | ( | FunctionalMixin | , |
| Chunk | |||
| ) |
Definition at line 1330 of file ah-dry-mixin_test.cc.
References Aleph::FunctionalMixin< Derived, Type >::chunk().
| TEST | ( | FunctionalMixin | , |
| ChunkEmpty | |||
| ) |
Definition at line 1354 of file ah-dry-mixin_test.cc.
References Aleph::FunctionalMixin< Derived, Type >::chunk().
| TEST | ( | FunctionalMixin | , |
| ChunkExactDivision | |||
| ) |
Definition at line 1346 of file ah-dry-mixin_test.cc.
References Aleph::FunctionalMixin< Derived, Type >::chunk().
| TEST | ( | FunctionalMixin | , |
| ChunkLargerThanContainer | |||
| ) |
Definition at line 1368 of file ah-dry-mixin_test.cc.
References Aleph::FunctionalMixin< Derived, Type >::chunk().
| TEST | ( | FunctionalMixin | , |
| ChunkSizeZero | |||
| ) |
Definition at line 1361 of file ah-dry-mixin_test.cc.
References Aleph::FunctionalMixin< Derived, Type >::chunk().
| TEST | ( | FunctionalMixin | , |
| CountIf | |||
| ) |
Definition at line 898 of file ah-dry-mixin_test.cc.
References Aleph::FunctionalMixin< Derived, Type >::count_if().
| TEST | ( | FunctionalMixin | , |
| CountIfEmpty | |||
| ) |
Definition at line 908 of file ah-dry-mixin_test.cc.
References Aleph::FunctionalMixin< Derived, Type >::count_if().
| TEST | ( | FunctionalMixin | , |
| Drop | |||
| ) |
Definition at line 544 of file ah-dry-mixin_test.cc.
References Aleph::FunctionalMixin< Derived, Type >::drop().
| TEST | ( | FunctionalMixin | , |
| Enumerate | |||
| ) |
Definition at line 982 of file ah-dry-mixin_test.cc.
References Aleph::FunctionalMixin< Derived, Type >::enumerate().
| TEST | ( | FunctionalMixin | , |
| EnumerateEmpty | |||
| ) |
Definition at line 998 of file ah-dry-mixin_test.cc.
References Aleph::FunctionalMixin< Derived, Type >::enumerate().
| TEST | ( | FunctionalMixin | , |
| ExistsEmpty | |||
| ) |
Definition at line 233 of file ah-dry-mixin_test.cc.
References Aleph::FunctionalMixin< Derived, Type >::exists().
| TEST | ( | FunctionalMixin | , |
| ExistsPredicate | |||
| ) |
Definition at line 225 of file ah-dry-mixin_test.cc.
References Aleph::FunctionalMixin< Derived, Type >::exists().
| TEST | ( | FunctionalMixin | , |
| Filter | |||
| ) |
Definition at line 448 of file ah-dry-mixin_test.cc.
References Aleph::FunctionalMixin< Derived, Type >::filter().
| TEST | ( | FunctionalMixin | , |
| FilterNone | |||
| ) |
Definition at line 461 of file ah-dry-mixin_test.cc.
References Aleph::FunctionalMixin< Derived, Type >::filter().
| TEST | ( | FunctionalMixin | , |
| FindIndex | |||
| ) |
Definition at line 1005 of file ah-dry-mixin_test.cc.
References Aleph::FunctionalMixin< Derived, Type >::find_index(), and MixinVector< T >::size().
| TEST | ( | FunctionalMixin | , |
| FindIndexEmpty | |||
| ) |
Definition at line 1014 of file ah-dry-mixin_test.cc.
References Aleph::FunctionalMixin< Derived, Type >::find_index().
| TEST | ( | FunctionalMixin | , |
| First | |||
| ) |
Definition at line 919 of file ah-dry-mixin_test.cc.
References Aleph::FunctionalMixin< Derived, Type >::first().
| TEST | ( | FunctionalMixin | , |
| FirstEmpty | |||
| ) |
Definition at line 928 of file ah-dry-mixin_test.cc.
References Aleph::FunctionalMixin< Derived, Type >::first().
| TEST | ( | FunctionalMixin | , |
| FirstLastSingleElement | |||
| ) |
| TEST | ( | FunctionalMixin | , |
| FirstOr | |||
| ) |
Definition at line 934 of file ah-dry-mixin_test.cc.
References Aleph::FunctionalMixin< Derived, Type >::first_or().
| TEST | ( | FunctionalMixin | , |
| Foldl | |||
| ) |
Definition at line 469 of file ah-dry-mixin_test.cc.
References Aleph::FunctionalMixin< Derived, Type >::foldl(), Aleph::product(), and Aleph::sum().
| TEST | ( | FunctionalMixin | , |
| FoldlEmpty | |||
| ) |
Definition at line 480 of file ah-dry-mixin_test.cc.
References Aleph::FunctionalMixin< Derived, Type >::foldl().
| TEST | ( | FunctionalMixin | , |
| ForEach | |||
| ) |
Definition at line 189 of file ah-dry-mixin_test.cc.
References Aleph::FunctionalMixin< Derived, Type >::for_each(), and Aleph::sum().
| TEST | ( | FunctionalMixin | , |
| HasValue | |||
| ) |
Definition at line 849 of file ah-dry-mixin_test.cc.
References Aleph::FunctionalMixin< Derived, Type >::has_value().
| TEST | ( | FunctionalMixin | , |
| HasValueEmpty | |||
| ) |
Definition at line 861 of file ah-dry-mixin_test.cc.
References Aleph::FunctionalMixin< Derived, Type >::has_value().
| TEST | ( | FunctionalMixin | , |
| HasValueStrings | |||
| ) |
Definition at line 867 of file ah-dry-mixin_test.cc.
References Aleph::FunctionalMixin< Derived, Type >::has_value().
| TEST | ( | FunctionalMixin | , |
| IndexOf | |||
| ) |
Definition at line 1020 of file ah-dry-mixin_test.cc.
References Aleph::FunctionalMixin< Derived, Type >::index_of(), and MixinVector< T >::size().
| TEST | ( | FunctionalMixin | , |
| IndexOfStrings | |||
| ) |
Definition at line 1030 of file ah-dry-mixin_test.cc.
References Aleph::FunctionalMixin< Derived, Type >::index_of(), and MixinVector< T >::size().
| TEST | ( | FunctionalMixin | , |
| Intersperse | |||
| ) |
Definition at line 1287 of file ah-dry-mixin_test.cc.
References Aleph::FunctionalMixin< Derived, Type >::intersperse().
| TEST | ( | FunctionalMixin | , |
| IntersperseEmpty | |||
| ) |
Definition at line 1299 of file ah-dry-mixin_test.cc.
References Aleph::FunctionalMixin< Derived, Type >::intersperse().
| TEST | ( | FunctionalMixin | , |
| IntersperseSingleElement | |||
| ) |
Definition at line 1306 of file ah-dry-mixin_test.cc.
References Aleph::FunctionalMixin< Derived, Type >::intersperse().
| TEST | ( | FunctionalMixin | , |
| IntersperseStrings | |||
| ) |
Definition at line 1318 of file ah-dry-mixin_test.cc.
References Aleph::FunctionalMixin< Derived, Type >::intersperse().
| TEST | ( | FunctionalMixin | , |
| Join | |||
| ) |
Definition at line 1475 of file ah-dry-mixin_test.cc.
References Aleph::FunctionalMixin< Derived, Type >::join().
| TEST | ( | FunctionalMixin | , |
| JoinEmpty | |||
| ) |
Definition at line 1490 of file ah-dry-mixin_test.cc.
References Aleph::FunctionalMixin< Derived, Type >::join().
| TEST | ( | FunctionalMixin | , |
| JoinSingleElement | |||
| ) |
Definition at line 1483 of file ah-dry-mixin_test.cc.
References Aleph::FunctionalMixin< Derived, Type >::join().
| TEST | ( | FunctionalMixin | , |
| JoinStr | |||
| ) |
Definition at line 1497 of file ah-dry-mixin_test.cc.
References Aleph::FunctionalMixin< Derived, Type >::join_str().
| TEST | ( | FunctionalMixin | , |
| JoinStrEmpty | |||
| ) |
Definition at line 1505 of file ah-dry-mixin_test.cc.
References Aleph::FunctionalMixin< Derived, Type >::join_str().
| TEST | ( | FunctionalMixin | , |
| Last | |||
| ) |
Definition at line 943 of file ah-dry-mixin_test.cc.
References Aleph::FunctionalMixin< Derived, Type >::last().
| TEST | ( | FunctionalMixin | , |
| LastEmpty | |||
| ) |
Definition at line 952 of file ah-dry-mixin_test.cc.
References Aleph::FunctionalMixin< Derived, Type >::last().
| TEST | ( | FunctionalMixin | , |
| LastOr | |||
| ) |
Definition at line 958 of file ah-dry-mixin_test.cc.
References Aleph::FunctionalMixin< Derived, Type >::last_or().
| TEST | ( | FunctionalMixin | , |
| Length | |||
| ) |
Definition at line 507 of file ah-dry-mixin_test.cc.
References Aleph::FunctionalMixin< Derived, Type >::length().
| TEST | ( | FunctionalMixin | , |
| Maps | |||
| ) |
Definition at line 239 of file ah-dry-mixin_test.cc.
References Aleph::FunctionalMixin< Derived, Type >::maps().
| TEST | ( | FunctionalMixin | , |
| MapsTypeConversion | |||
| ) |
Definition at line 252 of file ah-dry-mixin_test.cc.
References Aleph::FunctionalMixin< Derived, Type >::maps(), and Aleph::to_string().
| TEST | ( | FunctionalMixin | , |
| MapsWithoutOperationConvertsEachItemOnce | |||
| ) |
Definition at line 361 of file ah-dry-mixin_test.cc.
References FunctionalMethods< Container, T >::maps(), and Aleph::FunctionalMixin< Derived, Type >::maps().
| TEST | ( | FunctionalMixin | , |
| MapsWithoutOperationCopiesEachItemOnce | |||
| ) |
Definition at line 385 of file ah-dry-mixin_test.cc.
References MixinVector< T >::append(), FunctionalMethods< Container, T >::maps(), Aleph::FunctionalMixin< Derived, Type >::maps(), and w.
| TEST | ( | FunctionalMixin | , |
| MapsWithoutOperationCopiesTheItems | |||
| ) |
Definition at line 351 of file ah-dry-mixin_test.cc.
References Aleph::copy(), Aleph::maps(), and Aleph::FunctionalMixin< Derived, Type >::maps().
| TEST | ( | FunctionalMixin | , |
| MapsWithoutOperationIntoAContainerOfRvalues | |||
| ) |
Definition at line 415 of file ah-dry-mixin_test.cc.
References MixinVector< T >::append(), and Aleph::FunctionalMixin< Derived, Type >::maps().
| TEST | ( | FunctionalMixin | , |
| MapsWithoutOperationLetsACopyThrow | |||
| ) |
Definition at line 435 of file ah-dry-mixin_test.cc.
References MixinVector< T >::append(), and Aleph::FunctionalMixin< Derived, Type >::maps().
| TEST | ( | FunctionalMixin | , |
| Max | |||
| ) |
Definition at line 790 of file ah-dry-mixin_test.cc.
References Aleph::FunctionalMixin< Derived, Type >::max(), and Aleph::max_ptr().
| TEST | ( | FunctionalMixin | , |
| MaxByCustomComparator | |||
| ) |
Definition at line 824 of file ah-dry-mixin_test.cc.
References Aleph::FunctionalMixin< Derived, Type >::max_by().
| TEST | ( | FunctionalMixin | , |
| MaxEmpty | |||
| ) |
Definition at line 799 of file ah-dry-mixin_test.cc.
References Aleph::FunctionalMixin< Derived, Type >::max().
| TEST | ( | FunctionalMixin | , |
| MaxSingle | |||
| ) |
Definition at line 805 of file ah-dry-mixin_test.cc.
References Aleph::FunctionalMixin< Derived, Type >::max().
| TEST | ( | FunctionalMixin | , |
| Min | |||
| ) |
Definition at line 768 of file ah-dry-mixin_test.cc.
References Aleph::FunctionalMixin< Derived, Type >::min(), and Aleph::min_ptr().
| TEST | ( | FunctionalMixin | , |
| MinByCustomComparator | |||
| ) |
Definition at line 812 of file ah-dry-mixin_test.cc.
References Aleph::FunctionalMixin< Derived, Type >::min_by().
| TEST | ( | FunctionalMixin | , |
| MinEmpty | |||
| ) |
Definition at line 777 of file ah-dry-mixin_test.cc.
References Aleph::FunctionalMixin< Derived, Type >::min().
| TEST | ( | FunctionalMixin | , |
| MinMaxWithNegatives | |||
| ) |
Definition at line 836 of file ah-dry-mixin_test.cc.
References Aleph::FunctionalMixin< Derived, Type >::max(), and Aleph::FunctionalMixin< Derived, Type >::min().
| TEST | ( | FunctionalMixin | , |
| MinSingle | |||
| ) |
Definition at line 783 of file ah-dry-mixin_test.cc.
References Aleph::FunctionalMixin< Derived, Type >::min().
| TEST | ( | FunctionalMixin | , |
| MutableForEach | |||
| ) |
Definition at line 199 of file ah-dry-mixin_test.cc.
References Aleph::FunctionalMixin< Derived, Type >::for_each(), Aleph::FunctionalMixin< Derived, Type >::mutable_for_each(), and Aleph::sum().
| TEST | ( | FunctionalMixin | , |
| None | |||
| ) |
Definition at line 876 of file ah-dry-mixin_test.cc.
References Aleph::FunctionalMixin< Derived, Type >::none().
| TEST | ( | FunctionalMixin | , |
| NoneEmpty | |||
| ) |
Definition at line 884 of file ah-dry-mixin_test.cc.
References Aleph::FunctionalMixin< Derived, Type >::none().
| TEST | ( | FunctionalMixin | , |
| NoneLValuePredicate | |||
| ) |
Definition at line 890 of file ah-dry-mixin_test.cc.
References is_odd, and Aleph::FunctionalMixin< Derived, Type >::none().
| TEST | ( | FunctionalMixin | , |
| Partition | |||
| ) |
Definition at line 488 of file ah-dry-mixin_test.cc.
References Aleph::FunctionalMixin< Derived, Type >::partition().
| TEST | ( | FunctionalMixin | , |
| Product | |||
| ) |
Definition at line 754 of file ah-dry-mixin_test.cc.
References Aleph::FunctionalMixin< Derived, Type >::product().
| TEST | ( | FunctionalMixin | , |
| ProductEmpty | |||
| ) |
Definition at line 761 of file ah-dry-mixin_test.cc.
References Aleph::FunctionalMixin< Derived, Type >::product().
| TEST | ( | FunctionalMixin | , |
| Rev | |||
| ) |
Definition at line 516 of file ah-dry-mixin_test.cc.
References Aleph::FunctionalMixin< Derived, Type >::rev().
| TEST | ( | FunctionalMixin | , |
| Sliding | |||
| ) |
Definition at line 1375 of file ah-dry-mixin_test.cc.
References Aleph::FunctionalMixin< Derived, Type >::sliding(), and w.
| TEST | ( | FunctionalMixin | , |
| SlidingEmpty | |||
| ) |
Definition at line 1394 of file ah-dry-mixin_test.cc.
References Aleph::FunctionalMixin< Derived, Type >::sliding().
| TEST | ( | FunctionalMixin | , |
| SlidingLargerThanContainer | |||
| ) |
Definition at line 1408 of file ah-dry-mixin_test.cc.
References Aleph::FunctionalMixin< Derived, Type >::sliding().
| TEST | ( | FunctionalMixin | , |
| SlidingSizeZero | |||
| ) |
Definition at line 1401 of file ah-dry-mixin_test.cc.
References Aleph::FunctionalMixin< Derived, Type >::sliding().
| TEST | ( | FunctionalMixin | , |
| SlidingWithStep | |||
| ) |
Definition at line 1386 of file ah-dry-mixin_test.cc.
References Aleph::FunctionalMixin< Derived, Type >::sliding().
| TEST | ( | FunctionalMixin | , |
| Sum | |||
| ) |
Definition at line 733 of file ah-dry-mixin_test.cc.
References Aleph::FunctionalMixin< Derived, Type >::sum().
| TEST | ( | FunctionalMixin | , |
| SumEmpty | |||
| ) |
Definition at line 740 of file ah-dry-mixin_test.cc.
References Aleph::FunctionalMixin< Derived, Type >::sum().
| TEST | ( | FunctionalMixin | , |
| SumStrings | |||
| ) |
Definition at line 747 of file ah-dry-mixin_test.cc.
References Aleph::FunctionalMixin< Derived, Type >::sum().
| TEST | ( | FunctionalMixin | , |
| Take | |||
| ) |
Definition at line 529 of file ah-dry-mixin_test.cc.
References Aleph::all(), and Aleph::FunctionalMixin< Derived, Type >::take().
| TEST | ( | FunctionalMixin | , |
| ToDynlist | |||
| ) |
Definition at line 1437 of file ah-dry-mixin_test.cc.
References LocateFunctions< Container, Type >::get_it(), Aleph::DynList< T >::size(), and Aleph::FunctionalMixin< Derived, Type >::to_dynlist().
| TEST | ( | FunctionalMixin | , |
| ToDynlistEmpty | |||
| ) |
Definition at line 1451 of file ah-dry-mixin_test.cc.
References Aleph::HTList::is_empty(), and Aleph::FunctionalMixin< Derived, Type >::to_dynlist().
| TEST | ( | FunctionalMixin | , |
| ToDynlistRoundTrip | |||
| ) |
Definition at line 1458 of file ah-dry-mixin_test.cc.
References FunctionalMethods< Container, T >::for_each(), Aleph::DynList< T >::size(), Aleph::FunctionalMixin< Derived, Type >::to_dynlist(), and Aleph::FunctionalMixin< Derived, Type >::to_vector().
| TEST | ( | FunctionalMixin | , |
| ToVector | |||
| ) |
Definition at line 1420 of file ah-dry-mixin_test.cc.
References Aleph::FunctionalMixin< Derived, Type >::to_vector().
| TEST | ( | FunctionalMixin | , |
| ToVectorEmpty | |||
| ) |
Definition at line 1430 of file ah-dry-mixin_test.cc.
References Aleph::FunctionalMixin< Derived, Type >::to_vector().
| TEST | ( | FunctionalMixin | , |
| Unique | |||
| ) |
Definition at line 1238 of file ah-dry-mixin_test.cc.
References Aleph::FunctionalMixin< Derived, Type >::unique().
| TEST | ( | FunctionalMixin | , |
| UniqueBy | |||
| ) |
Definition at line 1276 of file ah-dry-mixin_test.cc.
References Aleph::tolower(), and Aleph::FunctionalMixin< Derived, Type >::unique_by().
| TEST | ( | FunctionalMixin | , |
| UniqueEmpty | |||
| ) |
Definition at line 1250 of file ah-dry-mixin_test.cc.
References Aleph::FunctionalMixin< Derived, Type >::unique().
| TEST | ( | FunctionalMixin | , |
| UniqueNoDuplicates | |||
| ) |
Definition at line 1269 of file ah-dry-mixin_test.cc.
References Aleph::FunctionalMixin< Derived, Type >::unique().
| TEST | ( | FunctionalMixin | , |
| UniqueSingleElement | |||
| ) |
Definition at line 1257 of file ah-dry-mixin_test.cc.
References Aleph::FunctionalMixin< Derived, Type >::unique().
| TEST | ( | FunctionalMixin | , |
| ZipWith | |||
| ) |
Definition at line 1517 of file ah-dry-mixin_test.cc.
References MixinVector< T >::append(), and Aleph::FunctionalMixin< Derived, Type >::zip_with().
| TEST | ( | FunctionalMixin | , |
| ZipWithBothEmpty | |||
| ) |
Definition at line 1552 of file ah-dry-mixin_test.cc.
References Aleph::FunctionalMixin< Derived, Type >::zip_with().
| TEST | ( | FunctionalMixin | , |
| ZipWithDifferentLengths | |||
| ) |
Definition at line 1534 of file ah-dry-mixin_test.cc.
References Aleph::FunctionalMixin< Derived, Type >::zip_with().
| TEST | ( | FunctionalMixin | , |
| ZipWithEmpty | |||
| ) |
Definition at line 1543 of file ah-dry-mixin_test.cc.
References Aleph::FunctionalMixin< Derived, Type >::zip_with().
| TEST | ( | KeysMixin | , |
| Items | |||
| ) |
Definition at line 654 of file ah-dry-mixin_test.cc.
References Aleph::KeysMixin< Derived, Type >::items(), and Aleph::DynList< T >::size().
| TEST | ( | KeysMixin | , |
| Keys | |||
| ) |
Definition at line 646 of file ah-dry-mixin_test.cc.
References k, and Aleph::KeysMixin< Derived, Type >::keys().
| TEST | ( | LocateMixin | , |
| FindItem | |||
| ) |
Definition at line 629 of file ah-dry-mixin_test.cc.
References Aleph::LocateMixin< Derived, Type >::find_item().
| TEST | ( | LocateMixin | , |
| FindPtr | |||
| ) |
Definition at line 606 of file ah-dry-mixin_test.cc.
References Aleph::LocateMixin< Derived, Type >::find_ptr().
| TEST | ( | LocateMixin | , |
| FindPtrModify | |||
| ) |
Definition at line 618 of file ah-dry-mixin_test.cc.
References Aleph::LocateMixin< Derived, Type >::find_ptr(), and Aleph::LocateMixin< Derived, Type >::nth().
| TEST | ( | LocateMixin | , |
| Nth | |||
| ) |
Definition at line 564 of file ah-dry-mixin_test.cc.
References Aleph::LocateMixin< Derived, Type >::nth().
| TEST | ( | LocateMixin | , |
| NthModify | |||
| ) |
Definition at line 598 of file ah-dry-mixin_test.cc.
References Aleph::LocateMixin< Derived, Type >::nth().
| TEST | ( | LocateMixin | , |
| NthNe | |||
| ) |
Definition at line 589 of file ah-dry-mixin_test.cc.
References Aleph::LocateMixin< Derived, Type >::nth_ne().
| TEST | ( | LocateMixin | , |
| NthWithLargestIndexThrows | |||
| ) |
Definition at line 576 of file ah-dry-mixin_test.cc.
References Aleph::LocateMixin< Derived, Type >::nth().
| TEST | ( | StressTest | , |
| LargeContainer | |||
| ) |
Definition at line 1084 of file ah-dry-mixin_test.cc.
References Aleph::FunctionalMixin< Derived, Type >::all(), MixinVector< T >::append(), Aleph::FunctionalMixin< Derived, Type >::count_if(), Aleph::FunctionalMixin< Derived, Type >::filter(), Aleph::FunctionalMixin< Derived, Type >::first(), Aleph::FunctionalMixin< Derived, Type >::foldl(), Aleph::FunctionalMixin< Derived, Type >::has_value(), Aleph::FunctionalMixin< Derived, Type >::last(), Aleph::FunctionalMixin< Derived, Type >::max(), Aleph::FunctionalMixin< Derived, Type >::min(), N, Aleph::sum(), and Aleph::FunctionalMixin< Derived, Type >::sum().
| TEST | ( | StressTest | , |
| LargeEnumerate | |||
| ) |
Definition at line 1122 of file ah-dry-mixin_test.cc.
References MixinVector< T >::append(), Aleph::FunctionalMixin< Derived, Type >::enumerate(), and N.
| TEST | ( | TraverseMixin | , |
| BasicTraverse | |||
| ) |
Definition at line 103 of file ah-dry-mixin_test.cc.
References Aleph::completed(), Aleph::sum(), and Aleph::TraverseMixin< Derived, Type >::traverse().
| TEST | ( | TraverseMixin | , |
| ConstantContainerRejectsModifyingOperation | |||
| ) |
Definition at line 156 of file ah-dry-mixin_test.cc.
References Aleph::sum(), and V.
| TEST | ( | TraverseMixin | , |
| TraverseEarlyStop | |||
| ) |
Definition at line 117 of file ah-dry-mixin_test.cc.
References Aleph::completed(), Aleph::sum(), and Aleph::TraverseMixin< Derived, Type >::traverse().
| TEST | ( | TraverseMixin | , |
| TraverseEmpty | |||
| ) |
Definition at line 132 of file ah-dry-mixin_test.cc.
References Aleph::completed(), and Aleph::TraverseMixin< Derived, Type >::traverse().