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

Tests for Aleph::CA::Triangular_Lattice and helpers. More...

#include <set>
#include <string>
#include <gtest/gtest.h>
#include <ca-traits.H>
#include <tpl_ca_concepts.H>
#include <tpl_ca_engine.H>
#include <tpl_ca_neighborhood.H>
#include <tpl_ca_rule.H>
#include <tpl_ca_storage.H>
#include <tpl_ca_triangular_lattice.H>
Include dependency graph for tpl_ca_triangular_lattice_test.cc:

Go to the source code of this file.

Typedefs

using Tri_2D = Triangular_Lattice< Dense_Cell_Storage< int, 2 >, OpenBoundary >
 

Functions

 TEST (CATriangularCoord, ParityAlternatesByCoordSum)
 
 TEST (CATriangularPixel, CentresAreUniquePerCell)
 
 TEST (CATriangularLattice, AccessorsReadAndWrite)
 
 TEST (CATriangularLattice, AtSafeRespectsOpenBoundary)
 
 TEST (CATriangularEngine, SpreadFromSingleSeedReachesNeighbours)
 
 TEST (CATriangularEngine, FullCoverageAfterEnoughSpreadSteps)
 
 TEST (CATriangularTikz, RenderContainsTriangleNodes)
 

Detailed Description

Tests for Aleph::CA::Triangular_Lattice and helpers.

Scope:

  • Parity helpers: tri_parity, tri_is_up, tri_is_down.
  • Pixel mapping: distinct centres for distinct cells.
  • Concept conformance.
  • Engine integration with Triangular_Neighborhood: a known totalistic rule advances the lattice as expected.
  • TikZ export sanity check.

Definition in file tpl_ca_triangular_lattice_test.cc.

Typedef Documentation

◆ Tri_2D

Function Documentation

◆ TEST() [1/7]

TEST ( CATriangularCoord  ,
ParityAlternatesByCoordSum   
)

◆ TEST() [2/7]

TEST ( CATriangularEngine  ,
FullCoverageAfterEnoughSpreadSteps   
)

◆ TEST() [3/7]

TEST ( CATriangularEngine  ,
SpreadFromSingleSeedReachesNeighbours   
)

◆ TEST() [4/7]

TEST ( CATriangularLattice  ,
AccessorsReadAndWrite   
)

◆ TEST() [5/7]

TEST ( CATriangularLattice  ,
AtSafeRespectsOpenBoundary   
)

◆ TEST() [6/7]

TEST ( CATriangularPixel  ,
CentresAreUniquePerCell   
)

◆ TEST() [7/7]