|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Unit tests for C++20 concepts: BinaryPredicate, StrictWeakOrder, EqualityComparator. More...
#include <gtest/gtest.h>#include <ah-concepts.H>#include <ahFunction.H>#include <ahFunctional.H>#include <tpl_avl.H>#include <tpl_splay_tree.H>#include <tpl_odhash.H>#include <htlist.H>#include <tpl_dynDlist.H>#include <tpl_array.H>#include <tpl_dynArray.H>#include <functional>Go to the source code of this file.
Classes | |
| struct | VoidBinary |
| struct | Unary |
| struct | NotCallable |
Typedefs | |
| using | BoolBinFn = bool(*)(const int &, const int &) |
Functions | |
| TEST (AhConceptsTest, AvlTreeInstantiates) | |
| TEST (AhConceptsTest, ODhashTableInstantiates) | |
| TEST (AlephFillTest, FillDynList) | |
| TEST (AlephFillTest, FillArray) | |
| TEST (AlephFillTest, FillDynDlist) | |
| TEST (AlephFillTest, FillDynArray) | |
| TEST (AlephFillTest, FillEmptyContainerIsNoOp) | |
| TEST (AlephFillTest, FillDoesNotChangeSize) | |
| TEST (AlephIotaTest, IotaDynList) | |
| TEST (AlephIotaTest, IotaArray) | |
| TEST (AlephIotaTest, IotaDynArray) | |
| TEST (AlephIotaTest, IotaDynDlist) | |
| TEST (AlephIotaTest, IotaEmptyIsNoOp) | |
| TEST (AlephIotaStepTest, EvenNumbers) | |
| TEST (AlephIotaStepTest, DoubleStep) | |
| TEST (AlephIotaStepTest, NegativeStep) | |
| TEST (AlephIotaStepTest, SingleElement) | |
| TEST (AlephFillIotaTest, FillThenIota) | |
Variables | |
| constexpr auto | my_less = [](const int & a, const int & b) { return a < b; } |
Unit tests for C++20 concepts: BinaryPredicate, StrictWeakOrder, EqualityComparator.
Definition in file ah_concepts_test.cc.
| using BoolBinFn = bool (*)(const int &, const int &) |
Definition at line 78 of file ah_concepts_test.cc.
| TEST | ( | AhConceptsTest | , |
| AvlTreeInstantiates | |||
| ) |
| TEST | ( | AhConceptsTest | , |
| ODhashTableInstantiates | |||
| ) |
Definition at line 119 of file ah_concepts_test.cc.
References Aleph::divide_and_conquer_partition_dp(), OhashCommon< HashTbl, Key >::insert(), Aleph::ODhashTable< Key, Cmp >::remove(), and Aleph::ODhashTable< Key, Cmp >::search().
| TEST | ( | AlephFillIotaTest | , |
| FillThenIota | |||
| ) |
Definition at line 306 of file ah_concepts_test.cc.
References Aleph::divide_and_conquer_partition_dp(), Aleph::fill(), Aleph::iota(), and Aleph::rep().
| TEST | ( | AlephFillTest | , |
| FillArray | |||
| ) |
Definition at line 159 of file ah_concepts_test.cc.
References Aleph::Array< T >::append(), Aleph::divide_and_conquer_partition_dp(), Aleph::fill(), and Aleph::Array< T >::size().
| TEST | ( | AlephFillTest | , |
| FillDoesNotChangeSize | |||
| ) |
Definition at line 196 of file ah_concepts_test.cc.
References Aleph::divide_and_conquer_partition_dp(), Aleph::fill(), and Aleph::rep().
| TEST | ( | AlephFillTest | , |
| FillDynArray | |||
| ) |
Definition at line 179 of file ah_concepts_test.cc.
References Aleph::DynArray< T >::append(), Aleph::divide_and_conquer_partition_dp(), Aleph::fill(), FunctionalMethods< Container, T >::for_each(), and Aleph::DynArray< T >::size().
| TEST | ( | AlephFillTest | , |
| FillDynDlist | |||
| ) |
Definition at line 170 of file ah_concepts_test.cc.
References Aleph::DynDlist< T >::append(), Aleph::divide_and_conquer_partition_dp(), and Aleph::fill().
| TEST | ( | AlephFillTest | , |
| FillDynList | |||
| ) |
Definition at line 150 of file ah_concepts_test.cc.
References Aleph::divide_and_conquer_partition_dp(), and Aleph::fill().
| TEST | ( | AlephFillTest | , |
| FillEmptyContainerIsNoOp | |||
| ) |
Definition at line 189 of file ah_concepts_test.cc.
References Aleph::divide_and_conquer_partition_dp(), and Aleph::fill().
| TEST | ( | AlephIotaStepTest | , |
| DoubleStep | |||
| ) |
Definition at line 269 of file ah_concepts_test.cc.
References Aleph::Array< T >::append(), Aleph::divide_and_conquer_partition_dp(), Aleph::iota(), and Aleph::Array< T >::size().
| TEST | ( | AlephIotaStepTest | , |
| EvenNumbers | |||
| ) |
Definition at line 257 of file ah_concepts_test.cc.
References Aleph::divide_and_conquer_partition_dp(), Aleph::iota(), and Aleph::rep().
| TEST | ( | AlephIotaStepTest | , |
| NegativeStep | |||
| ) |
Definition at line 283 of file ah_concepts_test.cc.
References Aleph::divide_and_conquer_partition_dp(), Aleph::iota(), and Aleph::rep().
| TEST | ( | AlephIotaStepTest | , |
| SingleElement | |||
| ) |
Definition at line 295 of file ah_concepts_test.cc.
References Aleph::divide_and_conquer_partition_dp(), Aleph::iota(), and Aleph::rep().
| TEST | ( | AlephIotaTest | , |
| IotaArray | |||
| ) |
Definition at line 216 of file ah_concepts_test.cc.
References Aleph::Array< T >::append(), Aleph::divide_and_conquer_partition_dp(), Aleph::iota(), and Aleph::Array< T >::size().
| TEST | ( | AlephIotaTest | , |
| IotaDynArray | |||
| ) |
Definition at line 226 of file ah_concepts_test.cc.
References Aleph::DynArray< T >::append(), Aleph::divide_and_conquer_partition_dp(), FunctionalMethods< Container, T >::for_each(), and Aleph::iota().
| TEST | ( | AlephIotaTest | , |
| IotaDynDlist | |||
| ) |
Definition at line 236 of file ah_concepts_test.cc.
References Aleph::DynDlist< T >::append(), Aleph::divide_and_conquer_partition_dp(), and Aleph::iota().
| TEST | ( | AlephIotaTest | , |
| IotaDynList | |||
| ) |
Definition at line 207 of file ah_concepts_test.cc.
References Aleph::divide_and_conquer_partition_dp(), Aleph::iota(), and Aleph::rep().
| TEST | ( | AlephIotaTest | , |
| IotaEmptyIsNoOp | |||
| ) |
Definition at line 246 of file ah_concepts_test.cc.
References Aleph::divide_and_conquer_partition_dp(), and Aleph::iota().
|
constexpr |
Definition at line 74 of file ah_concepts_test.cc.