|
Aleph-w 7.10.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 <string>#include <utility>#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 |
| struct | ah_concepts_test_ops::Throwing_Ops |
Namespaces | |
| namespace | ah_concepts_test_ops |
Typedefs | |
| using | BoolBinFn = bool(*)(const int &, const int &) |
Functions | |
| Throwing_Ops | ah_concepts_test_ops::operator+ (const Throwing_Ops &, const Throwing_Ops &) |
| Throwing_Ops | ah_concepts_test_ops::operator- (const Throwing_Ops &, const Throwing_Ops &) |
| Throwing_Ops | ah_concepts_test_ops::operator* (const Throwing_Ops &, const Throwing_Ops &) |
| Throwing_Ops | ah_concepts_test_ops::operator/ (const Throwing_Ops &, const Throwing_Ops &) |
| Throwing_Ops | ah_concepts_test_ops::operator% (const Throwing_Ops &, const Throwing_Ops &) |
| Throwing_Ops | ah_concepts_test_ops::operator- (const Throwing_Ops &) |
| bool | ah_concepts_test_ops::operator== (const Throwing_Ops &, const Throwing_Ops &) |
| bool | ah_concepts_test_ops::operator!= (const Throwing_Ops &, const Throwing_Ops &) |
| bool | ah_concepts_test_ops::operator< (const Throwing_Ops &, const Throwing_Ops &) |
| bool | ah_concepts_test_ops::operator> (const Throwing_Ops &, const Throwing_Ops &) |
| bool | ah_concepts_test_ops::operator<= (const Throwing_Ops &, const Throwing_Ops &) |
| bool | ah_concepts_test_ops::operator>= (const Throwing_Ops &, const Throwing_Ops &) |
| bool | ah_concepts_test_ops::operator&& (const Throwing_Ops &, const Throwing_Ops &) |
| bool | ah_concepts_test_ops::operator|| (const Throwing_Ops &, const Throwing_Ops &) |
| bool | ah_concepts_test_ops::operator! (const Throwing_Ops &) |
| 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 80 of file ah_concepts_test.cc.
| TEST | ( | AhConceptsTest | , |
| AvlTreeInstantiates | |||
| ) |
Definition at line 186 of file ah_concepts_test.cc.
References Aleph::Gen_Avl_Tree< NodeType, Key, Compare >::insert(), Aleph::Gen_Avl_Tree< NodeType, Key, Compare >::remove(), and Aleph::Gen_Avl_Tree< NodeType, Key, Compare >::search().
| TEST | ( | AhConceptsTest | , |
| ODhashTableInstantiates | |||
| ) |
Definition at line 195 of file ah_concepts_test.cc.
References OhashCommon< HashTbl, Key >::insert(), Aleph::ODhashTable< Key, Cmp >::remove(), and Aleph::ODhashTable< Key, Cmp >::search().
| TEST | ( | AlephFillIotaTest | , |
| FillThenIota | |||
| ) |
Definition at line 382 of file ah_concepts_test.cc.
References Aleph::fill(), Aleph::iota(), and Aleph::rep().
| TEST | ( | AlephFillTest | , |
| FillArray | |||
| ) |
Definition at line 235 of file ah_concepts_test.cc.
References Aleph::Array< T >::append(), Aleph::fill(), and Aleph::Array< T >::size().
| TEST | ( | AlephFillTest | , |
| FillDoesNotChangeSize | |||
| ) |
Definition at line 272 of file ah_concepts_test.cc.
References Aleph::fill(), and Aleph::rep().
| TEST | ( | AlephFillTest | , |
| FillDynArray | |||
| ) |
Definition at line 255 of file ah_concepts_test.cc.
References Aleph::DynArray< T >::append(), Aleph::fill(), FunctionalMethods< Container, T >::for_each(), and Aleph::DynArray< T >::size().
| TEST | ( | AlephFillTest | , |
| FillDynDlist | |||
| ) |
Definition at line 246 of file ah_concepts_test.cc.
References Aleph::DynDlist< T >::append(), Aleph::fill(), and FunctionalMethods< Container, T >::for_each().
| TEST | ( | AlephFillTest | , |
| FillDynList | |||
| ) |
Definition at line 226 of file ah_concepts_test.cc.
References Aleph::fill(), FunctionalMethods< Container, T >::for_each(), and Aleph::DynList< T >::size().
| TEST | ( | AlephFillTest | , |
| FillEmptyContainerIsNoOp | |||
| ) |
Definition at line 265 of file ah_concepts_test.cc.
References Aleph::fill(), and Aleph::HTList::is_empty().
| TEST | ( | AlephIotaStepTest | , |
| DoubleStep | |||
| ) |
Definition at line 345 of file ah_concepts_test.cc.
References Aleph::Array< T >::append(), Aleph::iota(), and Aleph::Array< T >::size().
| TEST | ( | AlephIotaStepTest | , |
| EvenNumbers | |||
| ) |
Definition at line 333 of file ah_concepts_test.cc.
References Aleph::iota(), and Aleph::rep().
| TEST | ( | AlephIotaStepTest | , |
| NegativeStep | |||
| ) |
Definition at line 359 of file ah_concepts_test.cc.
References Aleph::iota(), and Aleph::rep().
| TEST | ( | AlephIotaStepTest | , |
| SingleElement | |||
| ) |
Definition at line 371 of file ah_concepts_test.cc.
References Aleph::iota(), and Aleph::rep().
| TEST | ( | AlephIotaTest | , |
| IotaArray | |||
| ) |
Definition at line 292 of file ah_concepts_test.cc.
References Aleph::Array< T >::append(), Aleph::iota(), and Aleph::Array< T >::size().
| TEST | ( | AlephIotaTest | , |
| IotaDynArray | |||
| ) |
Definition at line 302 of file ah_concepts_test.cc.
References Aleph::DynArray< T >::append(), FunctionalMethods< Container, T >::for_each(), and Aleph::iota().
| TEST | ( | AlephIotaTest | , |
| IotaDynDlist | |||
| ) |
Definition at line 312 of file ah_concepts_test.cc.
References Aleph::DynDlist< T >::append(), FunctionalMethods< Container, T >::for_each(), and Aleph::iota().
| TEST | ( | AlephIotaTest | , |
| IotaDynList | |||
| ) |
Definition at line 283 of file ah_concepts_test.cc.
References Aleph::iota(), and Aleph::rep().
| TEST | ( | AlephIotaTest | , |
| IotaEmptyIsNoOp | |||
| ) |
Definition at line 322 of file ah_concepts_test.cc.
References Aleph::iota(), and Aleph::HTList::is_empty().
|
constexpr |
Definition at line 76 of file ah_concepts_test.cc.