|
Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
|
Tests for Archeap. More...
#include <gtest/gtest.h>#include <algorithm>#include <limits>#include <map>#include <memory>#include <random>#include <stdexcept>#include <unordered_map>#include <utility>#include <vector>#include <tpl_graph.H>#include <archeap.H>Go to the source code of this file.
Functions | |
| TEST (ArcHeapBasic, SingleArcInsertAndExtract) | |
| TEST (ArcHeapBasic, KeepsBestOfParallelArcs) | |
| TEST (ArcHeapBasic, IgnoresWorseArcForSameTarget) | |
| TEST (ArcHeapBasic, ExtractsArcsInIncreasingDistanceAcrossTargets) | |
| TEST (ArcHeapBasic, ClearsMappingForAllTargets) | |
| TEST (ArcHeapRandom, ExtractsNonDecreasingByDistance) | |
| TEST (ArcHeapDistance, OrdersByTheGivenDistance) | |
| TEST (ArcHeapDistance, TakesADistanceWithoutADefaultConstructor) | |
| TEST (ArcHeapDistance, WhatTheDistanceThrowsReachesTheCaller) | |
| TYPED_TEST_SUITE (ArcHeapLifecycle, ArcHeapKinds) | |
| TYPED_TEST (ArcHeapLifecycle, ClearNullsTheHandles) | |
| TYPED_TEST (ArcHeapLifecycle, DestroyingAFullHeapNullsTheHandles) | |
| TYPED_TEST (ArcHeapLifecycle, MoveConstructionOutlivesTheSource) | |
| TYPED_TEST (ArcHeapLifecycle, MoveAssignmentEmptiesTheTarget) | |
| TYPED_TEST_SUITE (ArcHeapWithDistance, ArcHeapsOf) | |
| TYPED_TEST (ArcHeapWithDistance, GetDistanceGivesTheDistanceThatOrders) | |
| TYPED_TEST (ArcHeapWithDistance, WhatTheDistanceThrowsLeavesEachArcWithItsHandle) | |
| TYPED_TEST (ArcHeapWithDistance, WhatTheDistanceThrowsLeavesTheHeapAsItWas) | |
| TEST (ArcFibonacciHeapDepth, ClearNullsTheHandlesOfATreeAsHighAsTheHeap) | |
| TEST (ArcFibonacciHeapDepth, DestroyingATreeAsHighAsTheHeapNullsTheHandles) | |
| TEST (ArcFibonacciHeapDepth, ClearNullsTheHandlesOfBushyTrees) | |
Tests for Archeap.
Definition in file archeap_test.cc.
| TEST | ( | ArcFibonacciHeapDepth | , |
| ClearNullsTheHandlesOfATreeAsHighAsTheHeap | |||
| ) |
Definition at line 839 of file archeap_test.cc.
| TEST | ( | ArcFibonacciHeapDepth | , |
| ClearNullsTheHandlesOfBushyTrees | |||
| ) |
Definition at line 866 of file archeap_test.cc.
References Aleph::count().
| TEST | ( | ArcFibonacciHeapDepth | , |
| DestroyingATreeAsHighAsTheHeapNullsTheHandles | |||
| ) |
Definition at line 852 of file archeap_test.cc.
| TEST | ( | ArcHeapBasic | , |
| ClearsMappingForAllTargets | |||
| ) |
Definition at line 188 of file archeap_test.cc.
References access(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), and nodes.
| TEST | ( | ArcHeapBasic | , |
| ExtractsArcsInIncreasingDistanceAcrossTargets | |||
| ) |
Definition at line 162 of file archeap_test.cc.
References access(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), and nodes.
| TEST | ( | ArcHeapBasic | , |
| IgnoresWorseArcForSameTarget | |||
| ) |
Definition at line 143 of file archeap_test.cc.
References access(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), and nodes.
| TEST | ( | ArcHeapBasic | , |
| KeepsBestOfParallelArcs | |||
| ) |
Definition at line 124 of file archeap_test.cc.
References access(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), and nodes.
| TEST | ( | ArcHeapBasic | , |
| SingleArcInsertAndExtract | |||
| ) |
Definition at line 104 of file archeap_test.cc.
References access(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), and nodes.
| TEST | ( | ArcHeapDistance | , |
| OrdersByTheGivenDistance | |||
| ) |
Definition at line 285 of file archeap_test.cc.
References access(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), nodes, and ArcHeap< GT, Distance, Access_Heap_Node >::put_arc().
| TEST | ( | ArcHeapDistance | , |
| TakesADistanceWithoutADefaultConstructor | |||
| ) |
Definition at line 308 of file archeap_test.cc.
References access(), ArcHeap< GT, Distance, Access_Heap_Node >::get_min_arc(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), nodes, and ArcHeap< GT, Distance, Access_Heap_Node >::put_arc().
| TEST | ( | ArcHeapDistance | , |
| WhatTheDistanceThrowsReachesTheCaller | |||
| ) |
Definition at line 346 of file archeap_test.cc.
References Aleph::count(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), k, nodes, and ArcHeap< GT, Distance, Access_Heap_Node >::put_arc().
| TEST | ( | ArcHeapRandom | , |
| ExtractsNonDecreasingByDistance | |||
| ) |
Definition at line 218 of file archeap_test.cc.
References access(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), nodes, rng, and w.
| TYPED_TEST | ( | ArcHeapLifecycle | , |
| ClearNullsTheHandles | |||
| ) |
Definition at line 444 of file archeap_test.cc.
| TYPED_TEST | ( | ArcHeapLifecycle | , |
| DestroyingAFullHeapNullsTheHandles | |||
| ) |
Definition at line 464 of file archeap_test.cc.
| TYPED_TEST | ( | ArcHeapLifecycle | , |
| MoveAssignmentEmptiesTheTarget | |||
| ) |
Definition at line 494 of file archeap_test.cc.
| TYPED_TEST | ( | ArcHeapLifecycle | , |
| MoveConstructionOutlivesTheSource | |||
| ) |
Definition at line 476 of file archeap_test.cc.
| TYPED_TEST | ( | ArcHeapWithDistance | , |
| GetDistanceGivesTheDistanceThatOrders | |||
| ) |
Definition at line 567 of file archeap_test.cc.
References Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), and nodes.
| TYPED_TEST | ( | ArcHeapWithDistance | , |
| WhatTheDistanceThrowsLeavesEachArcWithItsHandle | |||
| ) |
Definition at line 602 of file archeap_test.cc.
| TYPED_TEST | ( | ArcHeapWithDistance | , |
| WhatTheDistanceThrowsLeavesTheHeapAsItWas | |||
| ) |
| TYPED_TEST_SUITE | ( | ArcHeapLifecycle | , |
| ArcHeapKinds | |||
| ) |
| TYPED_TEST_SUITE | ( | ArcHeapWithDistance | , |
| ArcHeapsOf | |||
| ) |