|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Tests for Aleph::CA::Graph_Lattice and Graph_Synchronous_Engine.
More...
#include <cstdint>#include <random>#include <stdexcept>#include <vector>#include <gtest/gtest.h>#include <ca-traits.H>#include <tpl_ca_concepts.H>#include <tpl_ca_graph_automaton.H>#include <tpl_ca_rule.H>Go to the source code of this file.
Functions | |
| TEST (CAGraphBuilders, PathGraphAdjacencyShape) | |
| TEST (CAGraphBuilders, RingGraphAdjacencyShape) | |
| TEST (CAGraphBuilders, GridGraphAdjacencyEdgeCount) | |
| TEST (CAGraphBuilders, ToroidalGridAlwaysHasFourNeighbours) | |
| TEST (CAGraphLattice, ConstructorRejectsOutOfRangeNeighbour) | |
| TEST (CAGraphLattice, AtAndSetRoundTrip) | |
| TEST (CAGraphLattice, AtSafeOnOutOfRangeReturnsDefault) | |
| TEST (CAGraphLattice, FillResetsEveryCell) | |
| TEST (CAGraphEngine, MajorityRulePreservesAllZero) | |
| TEST (CAGraphEngine, MajorityRulePreservesAllOnes) | |
| TEST (CAGraphEngine, MajorityFlipsIsolatedSeedBackToZero) | |
| TEST (CAGraphEngine, VoterModelConvergesOnConnectedNonBipartiteGraph) | |
| TEST (CAGraphEngine, HookFiringSemantics) | |
| TEST (CAGraphEngine, EquivalenceWithSequentialEngineOnGrid) | |
Tests for Aleph::CA::Graph_Lattice and Graph_Synchronous_Engine.
Scope:
Definition in file tpl_ca_graph_automaton_test.cc.
| TEST | ( | CAGraphBuilders | , |
| GridGraphAdjacencyEdgeCount | |||
| ) |
Definition at line 93 of file tpl_ca_graph_automaton_test.cc.
References Aleph::blossom_maximum_cardinality_matching(), Aleph::CA::make_grid_graph_adjacency(), row, and Aleph::size().
| TEST | ( | CAGraphBuilders | , |
| PathGraphAdjacencyShape | |||
| ) |
Definition at line 72 of file tpl_ca_graph_automaton_test.cc.
References Aleph::blossom_maximum_cardinality_matching(), and Aleph::CA::make_path_graph_adjacency().
| TEST | ( | CAGraphBuilders | , |
| RingGraphAdjacencyShape | |||
| ) |
Definition at line 83 of file tpl_ca_graph_automaton_test.cc.
References Aleph::blossom_maximum_cardinality_matching(), and Aleph::CA::make_path_graph_adjacency().
| TEST | ( | CAGraphBuilders | , |
| ToroidalGridAlwaysHasFourNeighbours | |||
| ) |
Definition at line 108 of file tpl_ca_graph_automaton_test.cc.
References Aleph::blossom_maximum_cardinality_matching(), Aleph::CA::make_grid_graph_adjacency(), and row.
| TEST | ( | CAGraphEngine | , |
| EquivalenceWithSequentialEngineOnGrid | |||
| ) |
Definition at line 305 of file tpl_ca_graph_automaton_test.cc.
References Aleph::blossom_maximum_cardinality_matching(), Aleph::CA::make_grid_graph_adjacency(), Aleph::CA::Graph_Synchronous_Engine< Lattice, Rule >::run(), seed, and Aleph::size().
| TEST | ( | CAGraphEngine | , |
| HookFiringSemantics | |||
| ) |
Definition at line 277 of file tpl_ca_graph_automaton_test.cc.
References Aleph::blossom_maximum_cardinality_matching(), Aleph::CA::make_path_graph_adjacency(), Aleph::CA::Graph_Synchronous_Engine< Lattice, Rule >::on_pre_step(), and seed.
| TEST | ( | CAGraphEngine | , |
| MajorityFlipsIsolatedSeedBackToZero | |||
| ) |
Definition at line 231 of file tpl_ca_graph_automaton_test.cc.
References Aleph::blossom_maximum_cardinality_matching(), Aleph::CA::make_path_graph_adjacency(), Aleph::CA::Graph_Synchronous_Engine< Lattice, Rule >::run(), seed, and Aleph::size().
| TEST | ( | CAGraphEngine | , |
| MajorityRulePreservesAllOnes | |||
| ) |
Definition at line 221 of file tpl_ca_graph_automaton_test.cc.
References Aleph::blossom_maximum_cardinality_matching(), Aleph::CA::make_grid_graph_adjacency(), Aleph::CA::Graph_Synchronous_Engine< Lattice, Rule >::run(), seed, and Aleph::size().
| TEST | ( | CAGraphEngine | , |
| MajorityRulePreservesAllZero | |||
| ) |
Definition at line 211 of file tpl_ca_graph_automaton_test.cc.
References Aleph::blossom_maximum_cardinality_matching(), Aleph::CA::make_grid_graph_adjacency(), Aleph::CA::Graph_Synchronous_Engine< Lattice, Rule >::run(), seed, and Aleph::size().
| TEST | ( | CAGraphEngine | , |
| VoterModelConvergesOnConnectedNonBipartiteGraph | |||
| ) |
Definition at line 245 of file tpl_ca_graph_automaton_test.cc.
References Aleph::Array< T >::append(), Aleph::blossom_maximum_cardinality_matching(), seed, and Aleph::size().
| TEST | ( | CAGraphLattice | , |
| AtAndSetRoundTrip | |||
| ) |
Definition at line 126 of file tpl_ca_graph_automaton_test.cc.
References Aleph::blossom_maximum_cardinality_matching(), and Aleph::CA::make_path_graph_adjacency().
| TEST | ( | CAGraphLattice | , |
| AtSafeOnOutOfRangeReturnsDefault | |||
| ) |
Definition at line 139 of file tpl_ca_graph_automaton_test.cc.
References Aleph::blossom_maximum_cardinality_matching(), and Aleph::CA::make_path_graph_adjacency().
| TEST | ( | CAGraphLattice | , |
| ConstructorRejectsOutOfRangeNeighbour | |||
| ) |
Definition at line 119 of file tpl_ca_graph_automaton_test.cc.
References Aleph::blossom_maximum_cardinality_matching(), and Aleph::CA::Graph_Lattice< T >::size().
| TEST | ( | CAGraphLattice | , |
| FillResetsEveryCell | |||
| ) |
Definition at line 149 of file tpl_ca_graph_automaton_test.cc.
References Aleph::blossom_maximum_cardinality_matching(), and Aleph::CA::make_path_graph_adjacency().