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

Boundary-policy tests for Aleph::CA::Lattice<Storage, Boundary>. More...

#include <cstdint>
#include <stdexcept>
#include <gtest/gtest.h>
#include <ca-traits.H>
#include <tpl_ca_concepts.H>
#include <tpl_ca_storage.H>
#include <tpl_ca_bit_storage.H>
#include <tpl_ca_lattice.H>
Include dependency graph for tpl_ca_lattice_test.cc:

Go to the source code of this file.

Functions

 TEST (CALatticeOpenBoundary, InRangeMatchesStorage)
 
 TEST (CALatticeOpenBoundary, OutOfRangeReturnsZero)
 
 TEST (CALatticeToroidalBoundary, WrapsOnEachAxis)
 
 TEST (CALatticeToroidalBoundary, WrapHelperHandlesZeroExtent)
 
 TEST (CALatticeReflectiveBoundary, ReflectIntoRangeCoversBoundaryAndPeriods)
 
 TEST (CALatticeReflectiveBoundary, MirrorsAtEachEdge)
 
 TEST (CALatticeReflectiveBoundary, MirrorsAtCorners)
 
 TEST (CALatticeConstantBoundary, OutOfRangeReturnsConstantValue)
 
 TEST (CALatticeConstantBoundary, BitLatticeWithConstantTrue)
 
 TEST (CALattice, ExtentsAndDimensionForwardToStorage)
 
 TEST (CALattice, FillResetsEveryCell)
 
 TEST (CALattice, SwapExchangesContents)
 
 TEST (CALattice, StrictAtThrowsOnOutOfRange)
 
 TEST (CALattice, EmptyExtentsHandlesZeroAxis)
 

Detailed Description

Boundary-policy tests for Aleph::CA::Lattice<Storage, Boundary>.

For each policy (OpenBoundary, ToroidalBoundary, ReflectiveBoundary, ConstantBoundary<T, V>) we verify that at_safe(coord) returns the expected value at the borders, the corners, and outside the lattice.

Definition in file tpl_ca_lattice_test.cc.

Function Documentation

◆ TEST() [1/14]

TEST ( CALattice  ,
EmptyExtentsHandlesZeroAxis   
)

◆ TEST() [2/14]

TEST ( CALattice  ,
ExtentsAndDimensionForwardToStorage   
)

◆ TEST() [3/14]

TEST ( CALattice  ,
FillResetsEveryCell   
)

◆ TEST() [4/14]

TEST ( CALattice  ,
StrictAtThrowsOnOutOfRange   
)

◆ TEST() [5/14]

TEST ( CALattice  ,
SwapExchangesContents   
)

◆ TEST() [6/14]

TEST ( CALatticeConstantBoundary  ,
BitLatticeWithConstantTrue   
)

◆ TEST() [7/14]

TEST ( CALatticeConstantBoundary  ,
OutOfRangeReturnsConstantValue   
)

◆ TEST() [8/14]

TEST ( CALatticeOpenBoundary  ,
InRangeMatchesStorage   
)

◆ TEST() [9/14]

TEST ( CALatticeOpenBoundary  ,
OutOfRangeReturnsZero   
)

◆ TEST() [10/14]

TEST ( CALatticeReflectiveBoundary  ,
MirrorsAtCorners   
)

◆ TEST() [11/14]

TEST ( CALatticeReflectiveBoundary  ,
MirrorsAtEachEdge   
)

◆ TEST() [12/14]

TEST ( CALatticeReflectiveBoundary  ,
ReflectIntoRangeCoversBoundaryAndPeriods   
)

◆ TEST() [13/14]

TEST ( CALatticeToroidalBoundary  ,
WrapHelperHandlesZeroExtent   
)

◆ TEST() [14/14]

TEST ( CALatticeToroidalBoundary  ,
WrapsOnEachAxis   
)