|
Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
|
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>Go to the source code of this file.
Functions | |
| TEST (SpecialCtors, IntegerPairsNeverSelectTheIteratorConstructor) | |
| TEST (SpecialCtors, CountValueConstructorWinsOverTheIteratorTemplate) | |
| TEST (SpecialCtors, AcceptsIteratorsWithoutIteratorTraits) | |
| TEST (SpecialCtors, BuildsFromVectorPointerAndAlephRanges) | |
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.
| TEST | ( | SpecialCtors | , |
| AcceptsIteratorsWithoutIteratorTraits | |||
| ) |
Definition at line 195 of file special_ctors_test.cc.
References Aleph::DynDlist< T >::get_first(), Aleph::DynDlist< T >::get_last(), and Aleph::DynDlist< T >::size().
| TEST | ( | SpecialCtors | , |
| BuildsFromVectorPointerAndAlephRanges | |||
| ) |
Definition at line 208 of file special_ctors_test.cc.
References StlAlephIterator< SetName >::begin(), StlAlephIterator< SetName >::end(), Aleph::ArrayQueue< T >::front(), Aleph::DynSetTree< Key, Tree, Compare >::max(), Aleph::DynSetTree< Key, Tree, Compare >::min(), Aleph::ArrayQueue< T >::rear(), Aleph::DynSetTree< Key, Tree, Compare >::size(), Aleph::DynArray< T >::size(), and Aleph::MemArray< T >::size().
| TEST | ( | SpecialCtors | , |
| CountValueConstructorWinsOverTheIteratorTemplate | |||
| ) |
Definition at line 181 of file special_ctors_test.cc.
| TEST | ( | SpecialCtors | , |
| IntegerPairsNeverSelectTheIteratorConstructor | |||
| ) |
Definition at line 126 of file special_ctors_test.cc.
References Aleph::DynSkipList< Key, Compare >::is_empty(), Aleph::repeated(), Aleph::DynList< T >::size(), Aleph::GenBinHeap< NodeType, Key, Compare >::size(), and Aleph::DynArrayHeap< T, Compare >::size().