|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Tests for Gen_Mo_Algorithm and built-in policies. More...
#include <gtest/gtest.h>#include <tpl_mo_algorithm.H>#include <algorithm>#include <cstddef>#include <random>#include <unordered_map>#include <unordered_set>#include <utility>#include <vector>Go to the source code of this file.
Functions | |
| TEST (MoAlgorithm, EmptyDataNoQueries) | |
| TEST (MoAlgorithm, SingleElement) | |
| TEST (MoAlgorithm, BoundsChecking) | |
| TEST (MoAlgorithm, ConstructorsAllContainers) | |
| TEST (MoAlgorithm, CopyMoveSwap) | |
| TEST (MoDistinct, BasicSmall) | |
| TEST (MoDistinct, AllSame) | |
| TEST (MoDistinct, AllDistinct) | |
| TEST (MoDistinct, ExhaustiveBruteForce) | |
| TEST (MoDistinct, StressRandom) | |
| TEST (MoPowerful, BasicSmall) | |
| TEST (MoPowerful, ExhaustiveBruteForce) | |
| TEST (MoPowerful, StressRandom) | |
| TEST (MoMode, BasicSmall) | |
| TEST (MoMode, ExhaustiveBruteForce) | |
| TEST (MoMode, StressRandom) | |
| TEST (MoCustom, SumPolicy) | |
| TEST (MoAlgorithm, SnakeOptimizationCorrectness) | |
| TEST (MoAlgorithm, LargeStress) | |
Tests for Gen_Mo_Algorithm and built-in policies.
Definition in file tpl_mo_algorithm_test.cc.
| TEST | ( | MoAlgorithm | , |
| BoundsChecking | |||
| ) |
Definition at line 140 of file tpl_mo_algorithm_test.cc.
References Aleph::divide_and_conquer_partition_dp().
| TEST | ( | MoAlgorithm | , |
| ConstructorsAllContainers | |||
| ) |
Definition at line 152 of file tpl_mo_algorithm_test.cc.
References Aleph::divide_and_conquer_partition_dp().
| TEST | ( | MoAlgorithm | , |
| CopyMoveSwap | |||
| ) |
Definition at line 176 of file tpl_mo_algorithm_test.cc.
References Aleph::divide_and_conquer_partition_dp(), and Aleph::Gen_Mo_Algorithm< T, Policy >::swap().
| TEST | ( | MoAlgorithm | , |
| EmptyDataNoQueries | |||
| ) |
Definition at line 123 of file tpl_mo_algorithm_test.cc.
References Aleph::divide_and_conquer_partition_dp().
| TEST | ( | MoAlgorithm | , |
| LargeStress | |||
| ) |
Definition at line 523 of file tpl_mo_algorithm_test.cc.
References Aleph::Array< T >::create(), Aleph::divide_and_conquer_partition_dp(), l, N, r, and rng.
| TEST | ( | MoAlgorithm | , |
| SingleElement | |||
| ) |
Definition at line 132 of file tpl_mo_algorithm_test.cc.
References Aleph::divide_and_conquer_partition_dp().
| TEST | ( | MoAlgorithm | , |
| SnakeOptimizationCorrectness | |||
| ) |
Definition at line 485 of file tpl_mo_algorithm_test.cc.
References Aleph::Array< T >::create(), Aleph::divide_and_conquer_partition_dp(), l, N, r, and rng.
| TEST | ( | MoCustom | , |
| SumPolicy | |||
| ) |
Definition at line 470 of file tpl_mo_algorithm_test.cc.
References Aleph::divide_and_conquer_partition_dp(), and Aleph::Gen_Mo_Algorithm< T, Policy >::solve().
| TEST | ( | MoDistinct | , |
| AllDistinct | |||
| ) |
Definition at line 224 of file tpl_mo_algorithm_test.cc.
References Aleph::divide_and_conquer_partition_dp(), and Aleph::Gen_Mo_Algorithm< T, Policy >::solve().
| TEST | ( | MoDistinct | , |
| AllSame | |||
| ) |
Definition at line 215 of file tpl_mo_algorithm_test.cc.
References Aleph::divide_and_conquer_partition_dp(), and Aleph::Gen_Mo_Algorithm< T, Policy >::solve().
| TEST | ( | MoDistinct | , |
| BasicSmall | |||
| ) |
Definition at line 203 of file tpl_mo_algorithm_test.cc.
References Aleph::divide_and_conquer_partition_dp(), and Aleph::Gen_Mo_Algorithm< T, Policy >::solve().
| TEST | ( | MoDistinct | , |
| ExhaustiveBruteForce | |||
| ) |
Definition at line 233 of file tpl_mo_algorithm_test.cc.
References Aleph::Array< T >::append(), Aleph::Array< T >::create(), Aleph::divide_and_conquer_partition_dp(), l, N, r, and rng.
| TEST | ( | MoDistinct | , |
| StressRandom | |||
| ) |
Definition at line 264 of file tpl_mo_algorithm_test.cc.
References Aleph::Array< T >::create(), Aleph::divide_and_conquer_partition_dp(), l, N, r, and rng.
| TEST | ( | MoMode | , |
| BasicSmall | |||
| ) |
Definition at line 382 of file tpl_mo_algorithm_test.cc.
References Aleph::divide_and_conquer_partition_dp(), and Aleph::Gen_Mo_Algorithm< T, Policy >::solve().
| TEST | ( | MoMode | , |
| ExhaustiveBruteForce | |||
| ) |
Definition at line 400 of file tpl_mo_algorithm_test.cc.
References Aleph::Array< T >::append(), Aleph::Array< T >::create(), Aleph::divide_and_conquer_partition_dp(), l, N, r, and rng.
| TEST | ( | MoMode | , |
| StressRandom | |||
| ) |
Definition at line 432 of file tpl_mo_algorithm_test.cc.
References Aleph::Array< T >::create(), Aleph::divide_and_conquer_partition_dp(), l, N, r, and rng.
| TEST | ( | MoPowerful | , |
| BasicSmall | |||
| ) |
Definition at line 301 of file tpl_mo_algorithm_test.cc.
References Aleph::divide_and_conquer_partition_dp(), and Aleph::Gen_Mo_Algorithm< T, Policy >::solve().
| TEST | ( | MoPowerful | , |
| ExhaustiveBruteForce | |||
| ) |
Definition at line 315 of file tpl_mo_algorithm_test.cc.
References Aleph::Array< T >::append(), Aleph::Array< T >::create(), Aleph::divide_and_conquer_partition_dp(), l, N, r, and rng.
| TEST | ( | MoPowerful | , |
| StressRandom | |||
| ) |
Definition at line 345 of file tpl_mo_algorithm_test.cc.
References Aleph::Array< T >::create(), Aleph::divide_and_conquer_partition_dp(), l, N, r, and rng.