|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Tests for Aleph::CA::Hex_Lattice and the hex coord helpers.
More...
#include <array>#include <cstdint>#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_hex_lattice.H>#include <tpl_ca_neighborhood.H>#include <tpl_ca_rule.H>#include <tpl_ca_storage.H>Go to the source code of this file.
Typedefs | |
| using | Hex_2D = Hex_Lattice< Dense_Cell_Storage< int, 2 >, OpenBoundary > |
Functions | |
| TEST (CAHexCoord, AxialToCubeSatisfiesXYZZeroSum) | |
| TEST (CAHexCoord, AxialOffsetEvenRRoundTrip) | |
| TEST (CAHexCoord, AxialOffsetOddRRoundTrip) | |
| TEST (CAHexCoord, HexDistanceMatchesNeighbourhoodRadius) | |
| TEST (CAHexCoord, PixelCentresAreUniquePerCell) | |
| TEST (CAHexLattice, AxialAccessorsReadAndWrite) | |
| TEST (CAHexLattice, OffsetAccessorsRoundTripEvenR) | |
| TEST (CAHexLattice, BoundaryAwareAtSafeOnOpenBoundary) | |
| TEST (CAHexLatticeEngine, OneIsolatedCellDiesByB2S34) | |
| TEST (CAHexLatticeEngine, PairOfAdjacentCellsBirthsThirdCell) | |
| TEST (CAHexLatticeTikz, ProducesTikzPictureWithExpectedFragments) | |
Tests for Aleph::CA::Hex_Lattice and the hex coord helpers.
Scope:
Definition in file tpl_ca_hex_lattice_test.cc.
| using Hex_2D = Hex_Lattice<Dense_Cell_Storage<int, 2>, OpenBoundary> |
Definition at line 69 of file tpl_ca_hex_lattice_test.cc.
| TEST | ( | CAHexCoord | , |
| AxialOffsetEvenRRoundTrip | |||
| ) |
Definition at line 87 of file tpl_ca_hex_lattice_test.cc.
References Aleph::CA::axial_to_offset_even_r(), Aleph::blossom_maximum_cardinality_matching(), Aleph::CA::offset_to_axial_even_r(), and r.
| TEST | ( | CAHexCoord | , |
| AxialOffsetOddRRoundTrip | |||
| ) |
Definition at line 97 of file tpl_ca_hex_lattice_test.cc.
References Aleph::CA::axial_to_offset_odd_r(), Aleph::blossom_maximum_cardinality_matching(), Aleph::CA::offset_to_axial_odd_r(), and r.
| TEST | ( | CAHexCoord | , |
| AxialToCubeSatisfiesXYZZeroSum | |||
| ) |
Definition at line 76 of file tpl_ca_hex_lattice_test.cc.
References Aleph::CA::axial_to_cube(), Aleph::blossom_maximum_cardinality_matching(), Aleph::CA::cube_to_axial(), and r.
| TEST | ( | CAHexCoord | , |
| HexDistanceMatchesNeighbourhoodRadius | |||
| ) |
Definition at line 107 of file tpl_ca_hex_lattice_test.cc.
References Aleph::blossom_maximum_cardinality_matching(), Aleph::CA::hex_distance(), Aleph::CA::Hex_Neighborhood::offsets, and Aleph::CA::Hex_Axial::q.
| TEST | ( | CAHexCoord | , |
| PixelCentresAreUniquePerCell | |||
| ) |
Definition at line 121 of file tpl_ca_hex_lattice_test.cc.
References Aleph::CA::axial_to_pixel_pointy(), Aleph::blossom_maximum_cardinality_matching(), and r.
| TEST | ( | CAHexLattice | , |
| AxialAccessorsReadAndWrite | |||
| ) |
Definition at line 140 of file tpl_ca_hex_lattice_test.cc.
References Aleph::blossom_maximum_cardinality_matching(), r, and Aleph::CA::Hex_Lattice< Storage, Boundary >::set_axial().
| TEST | ( | CAHexLattice | , |
| BoundaryAwareAtSafeOnOpenBoundary | |||
| ) |
Definition at line 161 of file tpl_ca_hex_lattice_test.cc.
References Aleph::blossom_maximum_cardinality_matching().
| TEST | ( | CAHexLattice | , |
| OffsetAccessorsRoundTripEvenR | |||
| ) |
Definition at line 152 of file tpl_ca_hex_lattice_test.cc.
References Aleph::blossom_maximum_cardinality_matching(), and Aleph::CA::Hex_Lattice< Storage, Boundary >::set_offset_even_r().
| TEST | ( | CAHexLatticeEngine | , |
| OneIsolatedCellDiesByB2S34 | |||
| ) |
Definition at line 189 of file tpl_ca_hex_lattice_test.cc.
References Aleph::blossom_maximum_cardinality_matching(), r, Aleph::CA::Synchronous_Engine< Lattice, Rule, Neighborhood, Order >::run(), and seed.
| TEST | ( | CAHexLatticeEngine | , |
| PairOfAdjacentCellsBirthsThirdCell | |||
| ) |
Definition at line 208 of file tpl_ca_hex_lattice_test.cc.
References Aleph::blossom_maximum_cardinality_matching(), Aleph::CA::Synchronous_Engine< Lattice, Rule, Neighborhood, Order >::run(), and seed.
| TEST | ( | CAHexLatticeTikz | , |
| ProducesTikzPictureWithExpectedFragments | |||
| ) |
Definition at line 238 of file tpl_ca_hex_lattice_test.cc.
References Aleph::blossom_maximum_cardinality_matching(), out, Aleph::CA::render_hex_lattice_tikz(), and Aleph::CA::Hex_Lattice< Storage, Boundary >::set_axial().