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

Tests for Dynslist. More...

#include <gtest/gtest.h>
#include <tpl_dynSlist.H>
#include <random>
#include <vector>
Include dependency graph for dynslist.cc:

Go to the source code of this file.

Functions

 TEST (DynSlist, InsertAccessRemove)
 
 TEST (DynSlist, InsertMoveOverload)
 
 TEST (DynSlist, ThrowsOnInvalidPositions)
 
 TEST (DynSlist, IteratorTraversesInOrder)
 
 TEST (DynSlist, ConstOperatorBracketWorks)
 
 TEST (DynSlist, CopyConstructorIsDeepCopy)
 
 TEST (DynSlist, CopyAssignmentAndSelfAssignment)
 
 TEST (DynSlist, MoveConstructorLeavesSourceEmpty)
 
 TEST (DynSlist, MoveAssignmentWorks)
 
 TEST (DynSlist, NegativePositionsThrowAndDoNotMove)
 
 TEST (DynSlist, Property_RandomInsertRemove_MatchesVector)
 

Detailed Description

Tests for Dynslist.

Definition in file dynslist.cc.

Function Documentation

◆ TEST() [1/11]

TEST ( DynSlist  ,
ConstOperatorBracketWorks   
)

Definition at line 132 of file dynslist.cc.

References Aleph::DynSlist< T >::insert().

◆ TEST() [2/11]

TEST ( DynSlist  ,
CopyAssignmentAndSelfAssignment   
)

Definition at line 164 of file dynslist.cc.

References Aleph::DynSlist< T >::insert(), and Aleph::DynSlist< T >::size().

◆ TEST() [3/11]

TEST ( DynSlist  ,
CopyConstructorIsDeepCopy   
)

◆ TEST() [4/11]

TEST ( DynSlist  ,
InsertAccessRemove   
)

◆ TEST() [5/11]

TEST ( DynSlist  ,
InsertMoveOverload   
)

Definition at line 98 of file dynslist.cc.

References Aleph::DynSlist< T >::insert(), Aleph::DynSlist< T >::size(), and value.

◆ TEST() [6/11]

◆ TEST() [7/11]

TEST ( DynSlist  ,
MoveAssignmentWorks   
)

Definition at line 208 of file dynslist.cc.

References Aleph::DynSlist< T >::insert(), and Aleph::DynSlist< T >::size().

◆ TEST() [8/11]

TEST ( DynSlist  ,
MoveConstructorLeavesSourceEmpty   
)

Definition at line 186 of file dynslist.cc.

References Aleph::DynSlist< T >::insert(), and Aleph::DynSlist< T >::size().

◆ TEST() [9/11]

TEST ( DynSlist  ,
NegativePositionsThrowAndDoNotMove   
)

Definition at line 226 of file dynslist.cc.

References Aleph::DynSlist< T >::insert(), m, and Aleph::DynSlist< T >::remove().

◆ TEST() [10/11]

TEST ( DynSlist  ,
Property_RandomInsertRemove_MatchesVector   
)

◆ TEST() [11/11]

TEST ( DynSlist  ,
ThrowsOnInvalidPositions   
)

Definition at line 109 of file dynslist.cc.

References Aleph::DynSlist< T >::insert(), and Aleph::DynSlist< T >::remove().