|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
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>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) | |
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.
| TEST | ( | CALattice | , |
| EmptyExtentsHandlesZeroAxis | |||
| ) |
Definition at line 250 of file tpl_ca_lattice_test.cc.
References Aleph::blossom_maximum_cardinality_matching().
| TEST | ( | CALattice | , |
| ExtentsAndDimensionForwardToStorage | |||
| ) |
Definition at line 211 of file tpl_ca_lattice_test.cc.
References Aleph::blossom_maximum_cardinality_matching().
| TEST | ( | CALattice | , |
| FillResetsEveryCell | |||
| ) |
Definition at line 222 of file tpl_ca_lattice_test.cc.
References Aleph::blossom_maximum_cardinality_matching().
| TEST | ( | CALattice | , |
| StrictAtThrowsOnOutOfRange | |||
| ) |
Definition at line 243 of file tpl_ca_lattice_test.cc.
References Aleph::blossom_maximum_cardinality_matching().
| TEST | ( | CALattice | , |
| SwapExchangesContents | |||
| ) |
Definition at line 232 of file tpl_ca_lattice_test.cc.
References Aleph::blossom_maximum_cardinality_matching().
| TEST | ( | CALatticeConstantBoundary | , |
| BitLatticeWithConstantTrue | |||
| ) |
Definition at line 197 of file tpl_ca_lattice_test.cc.
References Aleph::blossom_maximum_cardinality_matching().
| TEST | ( | CALatticeConstantBoundary | , |
| OutOfRangeReturnsConstantValue | |||
| ) |
Definition at line 183 of file tpl_ca_lattice_test.cc.
References Aleph::blossom_maximum_cardinality_matching(), and Aleph::CA::Lattice< Storage, Boundary >::set().
| TEST | ( | CALatticeOpenBoundary | , |
| InRangeMatchesStorage | |||
| ) |
Definition at line 83 of file tpl_ca_lattice_test.cc.
References Aleph::blossom_maximum_cardinality_matching().
| TEST | ( | CALatticeOpenBoundary | , |
| OutOfRangeReturnsZero | |||
| ) |
Definition at line 91 of file tpl_ca_lattice_test.cc.
References Aleph::blossom_maximum_cardinality_matching().
| TEST | ( | CALatticeReflectiveBoundary | , |
| MirrorsAtCorners | |||
| ) |
Definition at line 169 of file tpl_ca_lattice_test.cc.
References Aleph::blossom_maximum_cardinality_matching().
| TEST | ( | CALatticeReflectiveBoundary | , |
| MirrorsAtEachEdge | |||
| ) |
Definition at line 157 of file tpl_ca_lattice_test.cc.
References Aleph::blossom_maximum_cardinality_matching().
| TEST | ( | CALatticeReflectiveBoundary | , |
| ReflectIntoRangeCoversBoundaryAndPeriods | |||
| ) |
Definition at line 134 of file tpl_ca_lattice_test.cc.
References Aleph::blossom_maximum_cardinality_matching(), and Aleph::CA::ca_lattice_detail::reflect_into_range().
| TEST | ( | CALatticeToroidalBoundary | , |
| WrapHelperHandlesZeroExtent | |||
| ) |
Definition at line 122 of file tpl_ca_lattice_test.cc.
References Aleph::blossom_maximum_cardinality_matching(), and Aleph::CA::ca_lattice_detail::wrap_into_range().
| TEST | ( | CALatticeToroidalBoundary | , |
| WrapsOnEachAxis | |||
| ) |
Definition at line 106 of file tpl_ca_lattice_test.cc.
References Aleph::blossom_maximum_cardinality_matching().