|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Phase 13 tests for the update-scheme strategies, the Async_Engine and the Block_Rule catalogue. More...
#include <array>#include <cstdint>#include <random>#include <vector>#include <gtest/gtest.h>#include <ca-traits.H>#include <tpl_ca_storage.H>#include <tpl_ca_lattice.H>#include <tpl_ca_neighborhood.H>#include <tpl_ca_rule.H>#include <tpl_ca_engine.H>#include <tpl_ca_async_engine.H>#include <tpl_ca_update_scheme.H>#include <tpl_ca_block_rule.H>Go to the source code of this file.
Functions | |
| TEST (CAUpdateScheme, SynchronousUpdateMatchesSynchronousEngineOnGameOfLife) | |
| TEST (CAUpdateScheme, SynchronousUpdateMatchesSynchronousEngineOnWolfram90) | |
| TEST (CAUpdateScheme, SequentialUpdateRelaxesSandpile) | |
| TEST (CAUpdateScheme, SequentialUpdateUsesSingleBuffer) | |
| TEST (CAUpdateScheme, RandomAsynchronousUpdateIsReproducible) | |
| TEST (CAUpdateScheme, RandomAsynchronousUpdateChangesFewCellsPerStep) | |
| TEST (CAUpdateScheme, BlockSynchronousUpdateOnlyTouchesOneBlockPerStep) | |
| TEST (CAUpdateScheme, MargolusCrittersIsReversibleFor1000Steps) | |
| TEST (CAUpdateScheme, MargolusBBMIsReversibleFor1000Steps) | |
| TEST (CAUpdateScheme, MargolusTMGasIsReversibleFor1000Steps) | |
| TEST (CAUpdateScheme, MargolusCrittersConservesPopulationParity) | |
| TEST (CAUpdateScheme, MargolusBBMConservesParticleCount) | |
| TEST (CAUpdateScheme, MargolusTMGasConservesParticleCount) | |
| TEST (CAUpdateScheme, CellRuleAsBlockRuleAppliesCellRuleToEachCorner) | |
| TEST (CAUpdateScheme, AsyncEnginePreAndPostHooksFire) | |
Phase 13 tests for the update-scheme strategies, the Async_Engine and the Block_Rule catalogue.
Coverage:
Definition in file ca_update_scheme_test.cc.
| TEST | ( | CAUpdateScheme | , |
| AsyncEnginePreAndPostHooksFire | |||
| ) |
Definition at line 442 of file ca_update_scheme_test.cc.
References Aleph::blossom_maximum_cardinality_matching(), and Aleph::CA::make_game_of_life_rule().
| TEST | ( | CAUpdateScheme | , |
| BlockSynchronousUpdateOnlyTouchesOneBlockPerStep | |||
| ) |
Definition at line 288 of file ca_update_scheme_test.cc.
References Aleph::and, Aleph::blossom_maximum_cardinality_matching(), Aleph::CA::make_game_of_life_rule(), and r.
| TEST | ( | CAUpdateScheme | , |
| CellRuleAsBlockRuleAppliesCellRuleToEachCorner | |||
| ) |
Definition at line 422 of file ca_update_scheme_test.cc.
References Aleph::blossom_maximum_cardinality_matching(), and out.
| TEST | ( | CAUpdateScheme | , |
| MargolusBBMConservesParticleCount | |||
| ) |
Definition at line 389 of file ca_update_scheme_test.cc.
References Aleph::blossom_maximum_cardinality_matching().
| TEST | ( | CAUpdateScheme | , |
| MargolusBBMIsReversibleFor1000Steps | |||
| ) |
Definition at line 357 of file ca_update_scheme_test.cc.
References Aleph::blossom_maximum_cardinality_matching().
| TEST | ( | CAUpdateScheme | , |
| MargolusCrittersConservesPopulationParity | |||
| ) |
Definition at line 367 of file ca_update_scheme_test.cc.
References Aleph::blossom_maximum_cardinality_matching(), and Aleph::size().
| TEST | ( | CAUpdateScheme | , |
| MargolusCrittersIsReversibleFor1000Steps | |||
| ) |
Definition at line 351 of file ca_update_scheme_test.cc.
References Aleph::blossom_maximum_cardinality_matching().
| TEST | ( | CAUpdateScheme | , |
| MargolusTMGasConservesParticleCount | |||
| ) |
Definition at line 404 of file ca_update_scheme_test.cc.
References Aleph::blossom_maximum_cardinality_matching().
| TEST | ( | CAUpdateScheme | , |
| MargolusTMGasIsReversibleFor1000Steps | |||
| ) |
Definition at line 362 of file ca_update_scheme_test.cc.
References Aleph::blossom_maximum_cardinality_matching().
| TEST | ( | CAUpdateScheme | , |
| RandomAsynchronousUpdateChangesFewCellsPerStep | |||
| ) |
Definition at line 262 of file ca_update_scheme_test.cc.
References Aleph::blossom_maximum_cardinality_matching(), Aleph::diff(), and Aleph::CA::make_game_of_life_rule().
| TEST | ( | CAUpdateScheme | , |
| RandomAsynchronousUpdateIsReproducible | |||
| ) |
Definition at line 243 of file ca_update_scheme_test.cc.
References Aleph::blossom_maximum_cardinality_matching(), and Aleph::CA::make_game_of_life_rule().
| TEST | ( | CAUpdateScheme | , |
| SequentialUpdateRelaxesSandpile | |||
| ) |
Definition at line 205 of file ca_update_scheme_test.cc.
References Aleph::blossom_maximum_cardinality_matching(), and k.
| TEST | ( | CAUpdateScheme | , |
| SequentialUpdateUsesSingleBuffer | |||
| ) |
Definition at line 231 of file ca_update_scheme_test.cc.
References Aleph::blossom_maximum_cardinality_matching().
| TEST | ( | CAUpdateScheme | , |
| SynchronousUpdateMatchesSynchronousEngineOnGameOfLife | |||
| ) |
Definition at line 117 of file ca_update_scheme_test.cc.
References Aleph::blossom_maximum_cardinality_matching(), and Aleph::CA::make_game_of_life_rule().
| TEST | ( | CAUpdateScheme | , |
| SynchronousUpdateMatchesSynchronousEngineOnWolfram90 | |||
| ) |
Definition at line 142 of file ca_update_scheme_test.cc.
References Aleph::blossom_maximum_cardinality_matching(), Aleph::CA::make_wolfram_elementary_rule(), Aleph::size(), and Aleph::CA::Async_Engine< Lattice, Rule, Neighborhood, Update_Scheme >::step().