|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Phase 8 tests for ca-rng.H.
More...
#include <array>#include <cstdint>#include <random>#include <set>#include <gtest/gtest.h>#include <ca-rng.H>#include <ca-traits.H>Go to the source code of this file.
Functions | |
| TEST (CARng, SplitMix64IsDistinctForSmallInputs) | |
| TEST (CARng, CellSeedIsSensitiveToCoord) | |
| TEST (CARng, CellSeedIsSensitiveToStep) | |
| TEST (CARng, CellSeedIsSensitiveToMasterSeed) | |
| TEST (CARng, CellSeedIsDeterministic) | |
| TEST (CARng, PerThreadRngForCellIsReproducible) | |
| TEST (CARng, PerThreadRngDifferentForDifferentCells) | |
| TEST (CARng, PerThreadRngContextOverloadMatches) | |
| TEST (CARng, PerThreadRngForThreadStepDistinctSubstreams) | |
| TEST (CARng, UniformUnitInsideHalfOpenInterval) | |
| TEST (CARng, UniformIntInsideRange) | |
| TEST (CARng, UniformIntDegenerateRangeReturnsLow) | |
| TEST (CARng, CellKeyFromCoordIsCoordSensitive) | |
Phase 8 tests for ca-rng.H.
Coverage:
splitmix64 avalanche (small inputs spread across all 64 bits).cell_seed is sensitive to every coordinate component, the step index and the master seed.Per_Thread_RNG::for_cell is deterministic and yields identical streams across invocations.uniform_unit / uniform_int produce values inside the documented ranges. Definition in file ca_rng_test.cc.
| TEST | ( | CARng | , |
| CellKeyFromCoordIsCoordSensitive | |||
| ) |
Definition at line 180 of file ca_rng_test.cc.
References Aleph::blossom_maximum_cardinality_matching().
| TEST | ( | CARng | , |
| CellSeedIsDeterministic | |||
| ) |
Definition at line 95 of file ca_rng_test.cc.
References Aleph::blossom_maximum_cardinality_matching().
| TEST | ( | CARng | , |
| CellSeedIsSensitiveToCoord | |||
| ) |
Definition at line 68 of file ca_rng_test.cc.
References Aleph::blossom_maximum_cardinality_matching().
| TEST | ( | CARng | , |
| CellSeedIsSensitiveToMasterSeed | |||
| ) |
Definition at line 88 of file ca_rng_test.cc.
References Aleph::blossom_maximum_cardinality_matching().
| TEST | ( | CARng | , |
| CellSeedIsSensitiveToStep | |||
| ) |
Definition at line 81 of file ca_rng_test.cc.
References Aleph::blossom_maximum_cardinality_matching().
| TEST | ( | CARng | , |
| PerThreadRngContextOverloadMatches | |||
| ) |
Definition at line 125 of file ca_rng_test.cc.
References Aleph::blossom_maximum_cardinality_matching(), and rng.
| TEST | ( | CARng | , |
| PerThreadRngDifferentForDifferentCells | |||
| ) |
Definition at line 114 of file ca_rng_test.cc.
References Aleph::blossom_maximum_cardinality_matching(), and rng.
| TEST | ( | CARng | , |
| PerThreadRngForCellIsReproducible | |||
| ) |
Definition at line 104 of file ca_rng_test.cc.
References Aleph::blossom_maximum_cardinality_matching(), and rng.
| TEST | ( | CARng | , |
| PerThreadRngForThreadStepDistinctSubstreams | |||
| ) |
Definition at line 136 of file ca_rng_test.cc.
References Aleph::blossom_maximum_cardinality_matching(), and rng.
| TEST | ( | CARng | , |
| SplitMix64IsDistinctForSmallInputs | |||
| ) |
Definition at line 58 of file ca_rng_test.cc.
References Aleph::blossom_maximum_cardinality_matching(), and Aleph::CA::splitmix64().
| TEST | ( | CARng | , |
| UniformIntDegenerateRangeReturnsLow | |||
| ) |
Definition at line 171 of file ca_rng_test.cc.
References Aleph::blossom_maximum_cardinality_matching(), rng, and Aleph::CA::uniform_int().
| TEST | ( | CARng | , |
| UniformIntInsideRange | |||
| ) |
Definition at line 159 of file ca_rng_test.cc.
References Aleph::blossom_maximum_cardinality_matching(), rng, and Aleph::CA::uniform_int().
| TEST | ( | CARng | , |
| UniformUnitInsideHalfOpenInterval | |||
| ) |
Definition at line 147 of file ca_rng_test.cc.
References Aleph::blossom_maximum_cardinality_matching(), rng, and Aleph::CA::uniform_unit().