Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
tpl_ca_continuous_rules_test.cc File Reference

Phase 9 tests for continuous and history CA rules. More...

#include <array>
#include <cmath>
#include <cstdint>
#include <stdexcept>
#include <gtest/gtest.h>
#include <ca-kernels.H>
#include <ca-rng.H>
#include <ca-traits.H>
#include <tpl_ca_continuous_rules.H>
#include <tpl_ca_engine.H>
#include <tpl_ca_lattice.H>
#include <tpl_ca_neighborhood.H>
#include <tpl_ca_storage.H>
Include dependency graph for tpl_ca_continuous_rules_test.cc:

Go to the source code of this file.

Functions

 TEST (CAContinuousRule, AppliesScalarConvolutionAndDt)
 
 TEST (CAContinuousRule, ValidatesDtNeighbourCountAndOutputRange)
 
 TEST (CAGrayScottRule, ValidatesParameters)
 
 TEST (CAGrayScottRule, UniformRestStateIsStable)
 
 TEST (CAGrayScottRule, LocalPatchStepMatchesExplicitEulerFormula)
 
 TEST (CAGrayScottRule, DeterministicSeedProducesReproduciblePatterns)
 
 TEST (CAFitzHughNagumoRule, LocalRestStepMatchesEquation)
 
 TEST (CAFitzHughNagumoRule, ValidatesParametersAndBlowUp)
 
 TEST (CAHistoryCell, RingBufferKeepsRecentStates)
 
 TEST (CAHistoryRule, DirectInvocationSupportsHistoryAwareFunctor)
 
 TEST (CAHistoryRule, IntegratesWithSynchronousEngine)
 

Detailed Description

Phase 9 tests for continuous and history CA rules.

Coverage:

  • Continuous_Rule scalar convolution dispatch and runtime guards.
  • Gray-Scott local transitions and deterministic pattern statistics.
  • FitzHugh-Nagumo local transitions and stability guards.
  • History_Cell ring-buffer semantics.
  • History_Rule direct invocation and Synchronous_Engine integration.

Definition in file tpl_ca_continuous_rules_test.cc.

Function Documentation

◆ TEST() [1/11]

TEST ( CAContinuousRule  ,
AppliesScalarConvolutionAndDt   
)

◆ TEST() [2/11]

TEST ( CAContinuousRule  ,
ValidatesDtNeighbourCountAndOutputRange   
)

◆ TEST() [3/11]

TEST ( CAFitzHughNagumoRule  ,
LocalRestStepMatchesEquation   
)

Definition at line 245 of file tpl_ca_continuous_rules_test.cc.

References Aleph::next().

◆ TEST() [4/11]

TEST ( CAFitzHughNagumoRule  ,
ValidatesParametersAndBlowUp   
)

Definition at line 262 of file tpl_ca_continuous_rules_test.cc.

◆ TEST() [5/11]

◆ TEST() [6/11]

TEST ( CAGrayScottRule  ,
LocalPatchStepMatchesExplicitEulerFormula   
)

Definition at line 202 of file tpl_ca_continuous_rules_test.cc.

References Aleph::next().

◆ TEST() [7/11]

TEST ( CAGrayScottRule  ,
UniformRestStateIsStable   
)

Definition at line 183 of file tpl_ca_continuous_rules_test.cc.

References Aleph::next().

◆ TEST() [8/11]

TEST ( CAGrayScottRule  ,
ValidatesParameters   
)

Definition at line 171 of file tpl_ca_continuous_rules_test.cc.

◆ TEST() [9/11]

TEST ( CAHistoryCell  ,
RingBufferKeepsRecentStates   
)

Definition at line 277 of file tpl_ca_continuous_rules_test.cc.

References h.

◆ TEST() [10/11]

TEST ( CAHistoryRule  ,
DirectInvocationSupportsHistoryAwareFunctor   
)

Definition at line 296 of file tpl_ca_continuous_rules_test.cc.

References Aleph::next(), and Aleph::sum().

◆ TEST() [11/11]

TEST ( CAHistoryRule  ,
IntegratesWithSynchronousEngine   
)

Definition at line 316 of file tpl_ca_continuous_rules_test.cc.

References engine.