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

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>
Include dependency graph for ah_concepts_test.cc:

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; }
 

Detailed Description

Unit tests for C++20 concepts: BinaryPredicate, StrictWeakOrder, EqualityComparator.

Definition in file ah_concepts_test.cc.

Typedef Documentation

◆ BoolBinFn

using BoolBinFn = bool (*)(const int &, const int &)

Definition at line 78 of file ah_concepts_test.cc.

Function Documentation

◆ TEST() [1/18]

◆ TEST() [2/18]

◆ TEST() [3/18]

TEST ( AlephFillIotaTest  ,
FillThenIota   
)

◆ TEST() [4/18]

TEST ( AlephFillTest  ,
FillArray   
)

◆ TEST() [5/18]

TEST ( AlephFillTest  ,
FillDoesNotChangeSize   
)

◆ TEST() [6/18]

◆ TEST() [7/18]

TEST ( AlephFillTest  ,
FillDynDlist   
)

◆ TEST() [8/18]

TEST ( AlephFillTest  ,
FillDynList   
)

Definition at line 150 of file ah_concepts_test.cc.

References Aleph::divide_and_conquer_partition_dp(), and Aleph::fill().

◆ TEST() [9/18]

TEST ( AlephFillTest  ,
FillEmptyContainerIsNoOp   
)

Definition at line 189 of file ah_concepts_test.cc.

References Aleph::divide_and_conquer_partition_dp(), and Aleph::fill().

◆ TEST() [10/18]

TEST ( AlephIotaStepTest  ,
DoubleStep   
)

◆ TEST() [11/18]

TEST ( AlephIotaStepTest  ,
EvenNumbers   
)

◆ TEST() [12/18]

TEST ( AlephIotaStepTest  ,
NegativeStep   
)

◆ TEST() [13/18]

TEST ( AlephIotaStepTest  ,
SingleElement   
)

◆ TEST() [14/18]

TEST ( AlephIotaTest  ,
IotaArray   
)

◆ TEST() [15/18]

◆ TEST() [16/18]

TEST ( AlephIotaTest  ,
IotaDynDlist   
)

◆ TEST() [17/18]

TEST ( AlephIotaTest  ,
IotaDynList   
)

◆ TEST() [18/18]

TEST ( AlephIotaTest  ,
IotaEmptyIsNoOp   
)

Definition at line 246 of file ah_concepts_test.cc.

References Aleph::divide_and_conquer_partition_dp(), and Aleph::iota().

Variable Documentation

◆ my_less

constexpr auto my_less = [](const int & a, const int & b) { return a < b; }
constexpr

Definition at line 74 of file ah_concepts_test.cc.