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

Comprehensive tests for Dial.H. More...

#include <gtest/gtest.h>
#include <cstdint>
#include <Dial.H>
#include <Dijkstra.H>
#include <tpl_graph.H>
Include dependency graph for test_dial.cc:

Go to the source code of this file.

Classes

struct  Int8Dist
 

Typedefs

using GT = List_Graph< Graph_Node< int >, Graph_Arc< int > >
 
using Node = GT::Node
 
using Arc = GT::Arc
 
using DGT = List_Digraph< Graph_Node< int >, Graph_Arc< int > >
 
using DNode = DGT::Node
 
using DArc = DGT::Arc
 

Functions

 TEST (Dial, BasicShortestPath)
 
 TEST (Dial, PathToSelf)
 
 TEST (Dial, NoPathExists)
 
 TEST (Dial, SingleNode)
 
 TEST (Dial, LinearChain)
 
 TEST (Dial, AllZeroWeights)
 
 TEST (Dial, WeightOneEdges)
 
 TEST (Dial, NullNodeValidation)
 
 TEST (Dial, NegativeWeightValidation)
 
 TEST (Dial, PaintAndGetMinPath)
 
 TEST (Dial, GetDistanceAfterPainting)
 
 TEST (Dial, GetDistanceBeforePainting)
 
 TEST (Dial, CrossValidationWithDijkstra)
 
 TEST (Dial, DigraphBasic)
 
 TEST (Dial, DigraphNoReturn)
 
 TEST (Dial, MultipleComputations)
 
 TEST (Dial, LargeLinearGraph)
 
 TEST (Dial, LargeWeights)
 
 TEST (Dial, PathNodeVerification)
 
 TEST (Dial, CompleteGraphK4)
 
 TEST (Dial, GraphWithCycle)
 
 TEST (Dial, StateGetters)
 
 TEST (Dial, DisconnectedPainting)
 
 TEST (Dial, RelaxationCorrectness)
 
 TEST (Dial, StarGraph)
 
 TEST (Dial, RoadNetworkExample)
 
 TEST (Dial, LargerCrossValidation)
 
 TEST (Dial, DistanceTypeOverflowValidation)
 
 TEST (Dial, BucketUpperBoundValidation)
 
 TEST (Dial, ParallelEdgesKeepSingleParentArcMarked)
 

Detailed Description

Comprehensive tests for Dial.H.

Tests cover correctness, edge cases, validation, and cross-checks against Dijkstra's algorithm for integer-weighted graphs.

Definition in file test_dial.cc.

Typedef Documentation

◆ Arc

using Arc = GT::Arc

Definition at line 23 of file test_dial.cc.

◆ DArc

using DArc = DGT::Arc

Definition at line 27 of file test_dial.cc.

◆ DGT

using DGT = List_Digraph<Graph_Node<int>, Graph_Arc<int> >

Definition at line 25 of file test_dial.cc.

◆ DNode

using DNode = DGT::Node

Definition at line 26 of file test_dial.cc.

◆ GT

using GT = List_Graph<Graph_Node<int>, Graph_Arc<int> >

Definition at line 21 of file test_dial.cc.

◆ Node

using Node = GT::Node

Definition at line 22 of file test_dial.cc.

Function Documentation

◆ TEST() [1/30]

◆ TEST() [2/30]

◆ TEST() [3/30]

◆ TEST() [4/30]

◆ TEST() [5/30]

◆ TEST() [6/30]

TEST ( Dial  ,
DigraphBasic   
)

Definition at line 314 of file test_dial.cc.

References Aleph::divide_and_conquer_partition_dp().

◆ TEST() [7/30]

TEST ( Dial  ,
DigraphNoReturn   
)

Definition at line 334 of file test_dial.cc.

References Aleph::divide_and_conquer_partition_dp().

◆ TEST() [8/30]

◆ TEST() [9/30]

◆ TEST() [10/30]

◆ TEST() [11/30]

TEST ( Dial  ,
GetDistanceBeforePainting   
)

◆ TEST() [12/30]

◆ TEST() [13/30]

◆ TEST() [14/30]

◆ TEST() [15/30]

◆ TEST() [16/30]

◆ TEST() [17/30]

◆ TEST() [18/30]

◆ TEST() [19/30]

◆ TEST() [20/30]

TEST ( Dial  ,
NullNodeValidation   
)

◆ TEST() [21/30]

◆ TEST() [22/30]

◆ TEST() [23/30]

◆ TEST() [24/30]

TEST ( Dial  ,
PathToSelf   
)

◆ TEST() [25/30]

◆ TEST() [26/30]

◆ TEST() [27/30]

TEST ( Dial  ,
SingleNode   
)

◆ TEST() [28/30]

◆ TEST() [29/30]

◆ TEST() [30/30]