|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Comprehensive test suite for ahAlgo.H. More...
#include <gtest/gtest.h>#include <vector>#include <ahAlgo.H>#include <tpl_dynDlist.H>#include <tpl_array.H>Go to the source code of this file.
Functions | |
| TEST (ForEach, SumElements) | |
| TEST (ForEach, ModifyElements) | |
| TEST (ForEach, EmptyRange) | |
| TEST (CountIf, CountEvenNumbers) | |
| TEST (CountIf, CountNone) | |
| TEST (CountIf, CountAll) | |
| TEST (Count, CountValue) | |
| TEST (Count, CountMissing) | |
| TEST (MinElement, FindMinimum) | |
| TEST (MinElement, EmptyRange) | |
| TEST (MaxElement, FindMaximum) | |
| TEST (FindIf, FindFirstEven) | |
| TEST (FindIf, FindNothing) | |
| TEST (Find, FindValue) | |
| TEST (Find, FindMissing) | |
| TEST (SearchN, FindConsecutive) | |
| TEST (SearchN, NotEnoughConsecutive) | |
| TEST (SearchN, ZeroCount) | |
| TEST (AdjacentFind, FindDuplicate) | |
| TEST (AdjacentFind, NoDuplicate) | |
| TEST (AdjacentFind, EmptyRange) | |
| TEST (Equal, EqualRanges) | |
| TEST (Equal, UnequalRanges) | |
| TEST (LexCompare, LessThan) | |
| TEST (LexCompare, GreaterThan) | |
| TEST (LexCompare, PrefixLessThan) | |
| TEST (Copy, BasicCopy) | |
| TEST (CopyBackward, BasicCopyBackward) | |
| TEST (Transform, UnaryTransform) | |
| TEST (Transform, BinaryTransform) | |
| TEST (SwapRanges, BasicSwap) | |
| TEST (Fill, FillRange) | |
| TEST (FillN, FillNElements) | |
| TEST (Generate, GenerateSequence) | |
| TEST (GenerateN, GenerateNElements) | |
| TEST (ReplaceIf, ReplaceEvenNumbers) | |
| TEST (Replace, ReplaceValue) | |
| TEST (ReplaceCopyIf, BasicReplaceCopy) | |
| TEST (Reverse, ReverseElements) | |
| TEST (Reverse, ReverseSingleElement) | |
| TEST (Reverse, ReverseEmpty) | |
| TEST (ReverseCopy, BasicReverseCopy) | |
| TEST (Rotate, RotateElements) | |
| TEST (LowerBound, FindPosition) | |
| TEST (LowerBound, ValueNotPresent) | |
| TEST (UpperBound, FindPosition) | |
| TEST (BinarySearch, ValueExists) | |
| TEST (BinarySearch, ValueMissing) | |
| TEST (EqualRange, FindRange) | |
| TEST (Includes, SubsetIncluded) | |
| TEST (Includes, SubsetNotIncluded) | |
| TEST (Includes, EmptySubset) | |
| TEST (Merge, MergeSortedRanges) | |
| TEST (Merge, MergeWithEmpty) | |
| TEST (Accumulate, SumElements) | |
| TEST (Accumulate, ProductElements) | |
| TEST (Accumulate, WithInitialValue) | |
| TEST (Accumulate, EmptyRange) | |
| TEST (InnerProduct, DotProduct) | |
| TEST (InnerProduct, CustomOperations) | |
| TEST (PartialSum, CumulativeSum) | |
| TEST (PartialSum, CustomOperation) | |
| TEST (PartialSum, EmptyRange) | |
| TEST (AdjacentDifference, ComputeDifferences) | |
| TEST (AdjacentDifference, CustomOperation) | |
| TEST (Unique, RemoveDuplicates) | |
| TEST (Unique, NoDuplicates) | |
| TEST (RemoveIf, RemoveEvenNumbers) | |
| TEST (Remove, RemoveValue) | |
| TEST (RemoveCopyIf, BasicCopy) | |
| TEST (UniqueCopy, BasicCopy) | |
| TEST (EdgeCases, SingleElement) | |
| TEST (EdgeCases, LargeRange) | |
| TEST (Mismatch, FindMismatch) | |
| TEST (Mismatch, NoMismatch) | |
| TEST (Search, FindSubsequence) | |
| TEST (Search, SubsequenceNotFound) | |
Comprehensive test suite for ahAlgo.H.
Tests all STL-like algorithm implementations in Aleph-w.
Definition in file ahAlgo.cc.
| TEST | ( | Accumulate | , |
| EmptyRange | |||
| ) |
Definition at line 645 of file ahAlgo.cc.
References Aleph::accumulate(), Aleph::maps(), and Aleph::sum().
| TEST | ( | Accumulate | , |
| ProductElements | |||
| ) |
Definition at line 630 of file ahAlgo.cc.
References Aleph::accumulate(), Aleph::maps(), and Aleph::product().
| TEST | ( | Accumulate | , |
| SumElements | |||
| ) |
Definition at line 623 of file ahAlgo.cc.
References Aleph::accumulate(), Aleph::maps(), and Aleph::sum().
| TEST | ( | Accumulate | , |
| WithInitialValue | |||
| ) |
Definition at line 638 of file ahAlgo.cc.
References Aleph::accumulate(), Aleph::maps(), and Aleph::sum().
| TEST | ( | AdjacentDifference | , |
| ComputeDifferences | |||
| ) |
Definition at line 722 of file ahAlgo.cc.
References Aleph::adjacent_difference(), StlAlephIterator< SetName >::begin(), and Aleph::maps().
| TEST | ( | AdjacentDifference | , |
| CustomOperation | |||
| ) |
Definition at line 736 of file ahAlgo.cc.
References Aleph::adjacent_difference(), StlAlephIterator< SetName >::begin(), and Aleph::maps().
| TEST | ( | AdjacentFind | , |
| EmptyRange | |||
| ) |
Definition at line 199 of file ahAlgo.cc.
References Aleph::adjacent_find(), and Aleph::maps().
| TEST | ( | AdjacentFind | , |
| FindDuplicate | |||
| ) |
Definition at line 184 of file ahAlgo.cc.
References Aleph::adjacent_find(), and Aleph::maps().
| TEST | ( | AdjacentFind | , |
| NoDuplicate | |||
| ) |
Definition at line 192 of file ahAlgo.cc.
References Aleph::adjacent_find(), and Aleph::maps().
| TEST | ( | BinarySearch | , |
| ValueExists | |||
| ) |
Definition at line 536 of file ahAlgo.cc.
References Aleph::binary_search(), and Aleph::maps().
| TEST | ( | BinarySearch | , |
| ValueMissing | |||
| ) |
Definition at line 542 of file ahAlgo.cc.
References Aleph::binary_search(), and Aleph::maps().
| TEST | ( | Copy | , |
| BasicCopy | |||
| ) |
Definition at line 256 of file ahAlgo.cc.
References StlAlephIterator< SetName >::begin(), Aleph::copy(), and Aleph::maps().
| TEST | ( | CopyBackward | , |
| BasicCopyBackward | |||
| ) |
Definition at line 268 of file ahAlgo.cc.
References Aleph::copy_backward(), StlAlephIterator< SetName >::end(), and Aleph::maps().
| TEST | ( | Count | , |
| CountMissing | |||
| ) |
Definition at line 84 of file ahAlgo.cc.
References Aleph::count(), and Aleph::maps().
| TEST | ( | Count | , |
| CountValue | |||
| ) |
Definition at line 77 of file ahAlgo.cc.
References Aleph::count(), and Aleph::maps().
| TEST | ( | CountIf | , |
| CountAll | |||
| ) |
Definition at line 69 of file ahAlgo.cc.
References Aleph::count_if(), and Aleph::maps().
| TEST | ( | CountIf | , |
| CountEvenNumbers | |||
| ) |
Definition at line 53 of file ahAlgo.cc.
References Aleph::count_if(), and Aleph::maps().
| TEST | ( | CountIf | , |
| CountNone | |||
| ) |
Definition at line 61 of file ahAlgo.cc.
References Aleph::count_if(), and Aleph::maps().
| TEST | ( | EdgeCases | , |
| LargeRange | |||
| ) |
Definition at line 858 of file ahAlgo.cc.
References Aleph::accumulate(), Aleph::count(), Aleph::count_if(), Aleph::maps(), N, and Aleph::sum().
| TEST | ( | EdgeCases | , |
| SingleElement | |||
| ) |
Definition at line 844 of file ahAlgo.cc.
References Aleph::accumulate(), Aleph::count(), Aleph::maps(), and Aleph::min_element().
| TEST | ( | Equal | , |
| EqualRanges | |||
| ) |
Definition at line 210 of file ahAlgo.cc.
References Aleph::equal(), and Aleph::maps().
| TEST | ( | Equal | , |
| UnequalRanges | |||
| ) |
Definition at line 217 of file ahAlgo.cc.
References Aleph::equal(), and Aleph::maps().
| TEST | ( | EqualRange | , |
| FindRange | |||
| ) |
Definition at line 552 of file ahAlgo.cc.
References Aleph::equal_range(), Aleph::maps(), and Aleph::range().
| TEST | ( | Fill | , |
| FillRange | |||
| ) |
Definition at line 334 of file ahAlgo.cc.
References Aleph::fill(), and Aleph::maps().
| TEST | ( | FillN | , |
| FillNElements | |||
| ) |
Definition at line 345 of file ahAlgo.cc.
References Aleph::fill_n(), and Aleph::maps().
| TEST | ( | Find | , |
| FindMissing | |||
| ) |
Definition at line 147 of file ahAlgo.cc.
References Aleph::find(), and Aleph::maps().
| TEST | ( | Find | , |
| FindValue | |||
| ) |
Definition at line 139 of file ahAlgo.cc.
References Aleph::find(), and Aleph::maps().
| TEST | ( | FindIf | , |
| FindFirstEven | |||
| ) |
Definition at line 122 of file ahAlgo.cc.
References Aleph::find_if(), and Aleph::maps().
| TEST | ( | FindIf | , |
| FindNothing | |||
| ) |
Definition at line 131 of file ahAlgo.cc.
References Aleph::find_if(), and Aleph::maps().
| TEST | ( | ForEach | , |
| EmptyRange | |||
| ) |
Definition at line 41 of file ahAlgo.cc.
References Aleph::count(), Aleph::for_each(), and Aleph::maps().
| TEST | ( | ForEach | , |
| ModifyElements | |||
| ) |
Definition at line 30 of file ahAlgo.cc.
References Aleph::for_each(), and Aleph::maps().
| TEST | ( | ForEach | , |
| SumElements | |||
| ) |
Definition at line 22 of file ahAlgo.cc.
References Aleph::for_each(), Aleph::maps(), and Aleph::sum().
| TEST | ( | Generate | , |
| GenerateSequence | |||
| ) |
Definition at line 362 of file ahAlgo.cc.
References Aleph::generate(), and Aleph::maps().
| TEST | ( | GenerateN | , |
| GenerateNElements | |||
| ) |
Definition at line 374 of file ahAlgo.cc.
References Aleph::generate_n(), and Aleph::maps().
| TEST | ( | Includes | , |
| EmptySubset | |||
| ) |
Definition at line 579 of file ahAlgo.cc.
References Aleph::includes(), and Aleph::maps().
| TEST | ( | Includes | , |
| SubsetIncluded | |||
| ) |
Definition at line 565 of file ahAlgo.cc.
References Aleph::includes(), and Aleph::maps().
| TEST | ( | Includes | , |
| SubsetNotIncluded | |||
| ) |
Definition at line 572 of file ahAlgo.cc.
References Aleph::includes(), and Aleph::maps().
| TEST | ( | InnerProduct | , |
| CustomOperations | |||
| ) |
Definition at line 665 of file ahAlgo.cc.
References Aleph::inner_product(), and Aleph::maps().
| TEST | ( | InnerProduct | , |
| DotProduct | |||
| ) |
Definition at line 656 of file ahAlgo.cc.
References Aleph::inner_product(), and Aleph::maps().
| TEST | ( | LexCompare | , |
| GreaterThan | |||
| ) |
Definition at line 236 of file ahAlgo.cc.
References Aleph::lexicographical_compare(), and Aleph::maps().
| TEST | ( | LexCompare | , |
| LessThan | |||
| ) |
Definition at line 228 of file ahAlgo.cc.
References Aleph::lexicographical_compare(), and Aleph::maps().
| TEST | ( | LexCompare | , |
| PrefixLessThan | |||
| ) |
Definition at line 244 of file ahAlgo.cc.
References Aleph::lexicographical_compare(), and Aleph::maps().
| TEST | ( | LowerBound | , |
| FindPosition | |||
| ) |
Definition at line 508 of file ahAlgo.cc.
References Aleph::lower_bound(), and Aleph::maps().
| TEST | ( | LowerBound | , |
| ValueNotPresent | |||
| ) |
Definition at line 516 of file ahAlgo.cc.
References Aleph::lower_bound(), and Aleph::maps().
| TEST | ( | MaxElement | , |
| FindMaximum | |||
| ) |
Definition at line 110 of file ahAlgo.cc.
References Aleph::maps(), and Aleph::max_element().
| TEST | ( | Merge | , |
| MergeSortedRanges | |||
| ) |
Definition at line 590 of file ahAlgo.cc.
References Aleph::maps(), and Aleph::merge().
| TEST | ( | Merge | , |
| MergeWithEmpty | |||
| ) |
Definition at line 606 of file ahAlgo.cc.
References Aleph::maps(), and Aleph::merge().
| TEST | ( | MinElement | , |
| EmptyRange | |||
| ) |
Definition at line 103 of file ahAlgo.cc.
References Aleph::maps(), and Aleph::min_element().
| TEST | ( | MinElement | , |
| FindMinimum | |||
| ) |
Definition at line 95 of file ahAlgo.cc.
References Aleph::maps(), and Aleph::min_element().
| TEST | ( | Mismatch | , |
| FindMismatch | |||
| ) |
Definition at line 879 of file ahAlgo.cc.
References Aleph::maps(), and Aleph::mismatch().
| TEST | ( | Mismatch | , |
| NoMismatch | |||
| ) |
Definition at line 890 of file ahAlgo.cc.
References Aleph::maps(), and Aleph::mismatch().
| TEST | ( | PartialSum | , |
| CumulativeSum | |||
| ) |
Definition at line 681 of file ahAlgo.cc.
References StlAlephIterator< SetName >::begin(), Aleph::maps(), and Aleph::partial_sum().
| TEST | ( | PartialSum | , |
| CustomOperation | |||
| ) |
Definition at line 695 of file ahAlgo.cc.
References StlAlephIterator< SetName >::begin(), Aleph::maps(), and Aleph::partial_sum().
| TEST | ( | PartialSum | , |
| EmptyRange | |||
| ) |
Definition at line 709 of file ahAlgo.cc.
References StlAlephIterator< SetName >::begin(), Aleph::maps(), and Aleph::partial_sum().
| TEST | ( | Remove | , |
| RemoveValue | |||
| ) |
Definition at line 791 of file ahAlgo.cc.
References Aleph::maps(), and Aleph::remove().
| TEST | ( | RemoveCopyIf | , |
| BasicCopy | |||
| ) |
Definition at line 806 of file ahAlgo.cc.
References Aleph::maps(), Aleph::remove_copy_if(), and Aleph::HTList::size().
| TEST | ( | RemoveIf | , |
| RemoveEvenNumbers | |||
| ) |
Definition at line 778 of file ahAlgo.cc.
References Aleph::maps(), and Aleph::remove_if().
| TEST | ( | Replace | , |
| ReplaceValue | |||
| ) |
Definition at line 405 of file ahAlgo.cc.
References Aleph::maps(), and Aleph::replace().
| TEST | ( | ReplaceCopyIf | , |
| BasicReplaceCopy | |||
| ) |
Definition at line 422 of file ahAlgo.cc.
References StlAlephIterator< SetName >::begin(), Aleph::maps(), and Aleph::replace_copy_if().
| TEST | ( | ReplaceIf | , |
| ReplaceEvenNumbers | |||
| ) |
Definition at line 391 of file ahAlgo.cc.
References Aleph::maps(), and Aleph::replace_if().
| TEST | ( | Reverse | , |
| ReverseElements | |||
| ) |
Definition at line 441 of file ahAlgo.cc.
References Aleph::maps(), and Aleph::reverse().
| TEST | ( | Reverse | , |
| ReverseEmpty | |||
| ) |
Definition at line 463 of file ahAlgo.cc.
References Aleph::maps(), and Aleph::reverse().
| TEST | ( | Reverse | , |
| ReverseSingleElement | |||
| ) |
Definition at line 454 of file ahAlgo.cc.
References Aleph::maps(), and Aleph::reverse().
| TEST | ( | ReverseCopy | , |
| BasicReverseCopy | |||
| ) |
Definition at line 473 of file ahAlgo.cc.
References StlAlephIterator< SetName >::begin(), Aleph::maps(), and Aleph::reverse_copy().
| TEST | ( | Rotate | , |
| RotateElements | |||
| ) |
Definition at line 491 of file ahAlgo.cc.
References Aleph::maps(), and Aleph::rotate().
| TEST | ( | Search | , |
| FindSubsequence | |||
| ) |
Definition at line 904 of file ahAlgo.cc.
References Aleph::maps(), and Aleph::search().
| TEST | ( | Search | , |
| SubsequenceNotFound | |||
| ) |
Definition at line 915 of file ahAlgo.cc.
References Aleph::maps(), and Aleph::search().
| TEST | ( | SearchN | , |
| FindConsecutive | |||
| ) |
Definition at line 158 of file ahAlgo.cc.
References Aleph::maps(), and Aleph::search_n().
| TEST | ( | SearchN | , |
| NotEnoughConsecutive | |||
| ) |
Definition at line 166 of file ahAlgo.cc.
References Aleph::maps(), and Aleph::search_n().
| TEST | ( | SearchN | , |
| ZeroCount | |||
| ) |
Definition at line 173 of file ahAlgo.cc.
References Aleph::maps(), and Aleph::search_n().
| TEST | ( | SwapRanges | , |
| BasicSwap | |||
| ) |
Definition at line 315 of file ahAlgo.cc.
References Aleph::maps(), and Aleph::swap_ranges().
| TEST | ( | Transform | , |
| BinaryTransform | |||
| ) |
Definition at line 297 of file ahAlgo.cc.
References StlAlephIterator< SetName >::begin(), StlAlephIterator< SetName >::end(), Aleph::maps(), and Aleph::transform().
| TEST | ( | Transform | , |
| UnaryTransform | |||
| ) |
Definition at line 284 of file ahAlgo.cc.
References StlAlephIterator< SetName >::begin(), Aleph::maps(), and Aleph::transform().
| TEST | ( | Unique | , |
| NoDuplicates | |||
| ) |
Definition at line 766 of file ahAlgo.cc.
References Aleph::maps(), and Aleph::unique().
| TEST | ( | Unique | , |
| RemoveDuplicates | |||
| ) |
Definition at line 754 of file ahAlgo.cc.
References Aleph::maps(), and Aleph::unique().
| TEST | ( | UniqueCopy | , |
| BasicCopy | |||
| ) |
Definition at line 827 of file ahAlgo.cc.
References Aleph::maps(), Aleph::HTList::size(), and Aleph::unique_copy().
| TEST | ( | UpperBound | , |
| FindPosition | |||
| ) |
Definition at line 524 of file ahAlgo.cc.
References Aleph::maps(), and Aleph::upper_bound().