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

Tests of Bounded_Cycle_Index: the catalog against a search made apart, the numbers of the arcs, the weights, the filter and its margin, the changes of several arcs, the limits and the failures. More...

#include <gtest/gtest.h>
#include <algorithm>
#include <cmath>
#include <cstdint>
#include <functional>
#include <limits>
#include <map>
#include <random>
#include <set>
#include <stdexcept>
#include <type_traits>
#include <utility>
#include <vector>
#include <gmpxx.h>
#include <Bounded_Cycle_Index.H>
#include <tpl_agraph.H>
#include <tpl_const_graph_view.H>
#include <tpl_graph.H>
#include <tpl_sgraph.H>
Include dependency graph for bounded_cycle_index_test.cc:

Go to the source code of this file.

Functions

 TYPED_TEST (BoundedCycleIndexOn, HasTheCatalogOfASearchMadeApart)
 
 TYPED_TEST (BoundedCycleIndexOn, DoesNotDependOnTheOrderOfInsertion)
 
 TEST (BoundedCycleIndex, CountsTheCyclesOfACompleteDigraph)
 
 TEST (BoundedCycleIndex, OrdersTheCatalogAndKeepsThePrefixes)
 
 TEST (BoundedCycleIndex, TellsParallelArcsLoopsAndSensesApart)
 
 TEST (BoundedCycleIndex, NumbersTheArcsInTheOrderGiven)
 
 TEST (BoundedCycleIndex, StartsWithArcsThatCannotBeUsed)
 
 TYPED_TEST (BoundedCycleIndexOn, UpdateHandsTheCyclesBelowTheBound)
 
 TEST (BoundedCycleIndex, HandsTheSameSumWhicheverArcChanged)
 
 TYPED_TEST (BoundedCycleIndexOn, HandsOnceEachCycleOfSeveralArcs)
 
 TEST (BoundedCycleIndex, WalksTheWholeCatalog)
 
 TEST (BoundedCycleIndex, GivesEmptyRanges)
 
 TEST (BoundedCycleIndex, RejectsWhatIsNotValid)
 
 TEST (BoundedCycleIndex, HasLimits)
 
 TEST (BoundedCycleIndex, HoldsMoreArcsThanFitIn16Bits)
 
 TEST (BoundedCycleIndex, StaysWholeWhenTheFunctionThrows)
 
 TEST (BoundedCycleIndex, StampsTheWritesOfEachArc)
 
 TEST (BoundedCycleIndex, SwapsAndCopies)
 
 TEST (BoundedCycleIndex, StartsACopyMadeInsideAQueryWithoutMarks)
 
 TEST (BoundedCycleIndex, LeavesAnIndexThatIsMovedFromWithoutArcsAndCycles)
 
 TEST (BoundedCycleIndex, KeepsWhatItHadWhenItIsAssignedToItself)
 
 TEST (BoundedCycleIndex, ClearsTheMarkOfAnArcWhenTheFunctionThrowsAfterIt)
 
 TEST (BoundedCycleIndex, NeedsTheBoundRoundedUp)
 
 TEST (BoundedCycleIndex, HasOnlyTheLoopsWhenOnlyTheyAreAskedFor)
 
 TEST (BoundedCycleIndex, BoundsTheErrorOfTheSum)
 

Detailed Description

Tests of Bounded_Cycle_Index: the catalog against a search made apart, the numbers of the arcs, the weights, the filter and its margin, the changes of several arcs, the limits and the failures.

Definition in file bounded_cycle_index_test.cc.

Function Documentation

◆ TEST() [1/21]

TEST ( BoundedCycleIndex  ,
BoundsTheErrorOfTheSum   
)

◆ TEST() [2/21]

◆ TEST() [3/21]

TEST ( BoundedCycleIndex  ,
CountsTheCyclesOfACompleteDigraph   
)

◆ TEST() [4/21]

TEST ( BoundedCycleIndex  ,
GivesEmptyRanges   
)

Definition at line 759 of file bounded_cycle_index_test.cc.

References Aleph::count().

◆ TEST() [5/21]

TEST ( BoundedCycleIndex  ,
HandsTheSameSumWhicheverArcChanged   
)

Definition at line 632 of file bounded_cycle_index_test.cc.

References Aleph::sum().

◆ TEST() [6/21]

TEST ( BoundedCycleIndex  ,
HasLimits   
)

◆ TEST() [7/21]

◆ TEST() [8/21]

◆ TEST() [9/21]

TEST ( BoundedCycleIndex  ,
KeepsWhatItHadWhenItIsAssignedToItself   
)

◆ TEST() [10/21]

TEST ( BoundedCycleIndex  ,
LeavesAnIndexThatIsMovedFromWithoutArcsAndCycles   
)

◆ TEST() [11/21]

TEST ( BoundedCycleIndex  ,
NeedsTheBoundRoundedUp   
)

◆ TEST() [12/21]

TEST ( BoundedCycleIndex  ,
NumbersTheArcsInTheOrderGiven   
)

◆ TEST() [13/21]

◆ TEST() [14/21]

TEST ( BoundedCycleIndex  ,
RejectsWhatIsNotValid   
)

Definition at line 819 of file bounded_cycle_index_test.cc.

References Aleph::count().

◆ TEST() [15/21]

TEST ( BoundedCycleIndex  ,
StampsTheWritesOfEachArc   
)

Definition at line 965 of file bounded_cycle_index_test.cc.

◆ TEST() [16/21]

TEST ( BoundedCycleIndex  ,
StartsACopyMadeInsideAQueryWithoutMarks   
)

Definition at line 1072 of file bounded_cycle_index_test.cc.

References Aleph::each().

◆ TEST() [17/21]

◆ TEST() [18/21]

◆ TEST() [19/21]

◆ TEST() [20/21]

TEST ( BoundedCycleIndex  ,
TellsParallelArcsLoopsAndSensesApart   
)

Definition at line 505 of file bounded_cycle_index_test.cc.

References Aleph::Cycle.

◆ TEST() [21/21]

◆ TYPED_TEST() [1/4]

◆ TYPED_TEST() [2/4]

◆ TYPED_TEST() [3/4]

TYPED_TEST ( BoundedCycleIndexOn  ,
HasTheCatalogOfASearchMadeApart   
)

◆ TYPED_TEST() [4/4]