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

Tests for the constructors generated by the Special_Ctors macro. More...

#include <gtest/gtest.h>
#include <cstddef>
#include <iterator>
#include <type_traits>
#include <vector>
#include <ahDry.H>
#include <htlist.H>
#include <polygon.H>
#include <tpl_array.H>
#include <tpl_arrayHeap.H>
#include <tpl_arrayQueue.H>
#include <tpl_arrayStack.H>
#include <tpl_dynArray.H>
#include <tpl_dynArrayHeap.H>
#include <tpl_dynBinHeap.H>
#include <tpl_dynDlist.H>
#include <tpl_dynListQueue.H>
#include <tpl_dynListStack.H>
#include <tpl_dynSetHash.H>
#include <tpl_dynSetTree.H>
#include <tpl_dynSkipList.H>
#include <tpl_hash.H>
#include <tpl_interval_tree.H>
#include <tpl_odhash.H>
#include <tpl_olhash.H>
Include dependency graph for special_ctors_test.cc:

Go to the source code of this file.

Functions

 TEST (SpecialCtors, IntegerPairsNeverSelectTheIteratorConstructor)
 
 TEST (SpecialCtors, CountValueConstructorWinsOverTheIteratorTemplate)
 
 TEST (SpecialCtors, AcceptsIteratorsWithoutIteratorTraits)
 
 TEST (SpecialCtors, BuildsFromVectorPointerAndAlephRanges)
 

Detailed Description

Tests for the constructors generated by the Special_Ctors macro.

The iterator-pair constructor used to accept any type, so an integer pair such as X<int>(3, 7) selected it and failed inside the macro on *it. These tests check that integer pairs never select it, that a count/value constructor wins over it, and that real ranges are still accepted.

Definition in file special_ctors_test.cc.

Function Documentation

◆ TEST() [1/4]

TEST ( SpecialCtors  ,
AcceptsIteratorsWithoutIteratorTraits   
)

◆ TEST() [2/4]

◆ TEST() [3/4]

TEST ( SpecialCtors  ,
CountValueConstructorWinsOverTheIteratorTemplate   
)

Definition at line 181 of file special_ctors_test.cc.

References m, and value.

◆ TEST() [4/4]