|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Phase 11 tests for cellular-automata IO and image exporters. More...
#include <cstdint>#include <set>#include <sstream>#include <stdexcept>#include <string>#include <utility>#include <gtest/gtest.h>#include <ca-io.H>#include <tpl_ca_lattice.H>#include <tpl_ca_storage.H>Go to the source code of this file.
Functions | |
| TEST (CAIO, RleFullFrameRoundTripPreservesExtentsAndCells) | |
| TEST (CAIO, RleTrimmedOutputMatchesCanonicalGliderShape) | |
| TEST (CAIO, RleParserAcceptsCommentsLongRunsAndConwayAliases) | |
| TEST (CAIO, RleParserRejectsMalformedInput) | |
| TEST (CAIO, PlaintextRoundTripPreservesFullFrame) | |
| TEST (CAIO, PlaintextParserAcceptsStarsAndRejectsUnknownGlyphs) | |
| TEST (CAIO, Life106NormalisesNegativeCoordinates) | |
| TEST (CAIO, Life106WriterProducesReadableCoordinates) | |
| TEST (CAIO, Life105RoundTripPreservesFullFrame) | |
| TEST (CAIO, Life105ParserMergesNegativeBlocks) | |
| TEST (CAIO, CsvRoundTripPreservesNumericSnapshot) | |
| TEST (CAIO, CsvReaderRejectsRaggedRowsAndBadScalars) | |
| TEST (CAIO, JsonRoundTripPreservesNumericSnapshot) | |
| TEST (CAIO, CsvAndJsonWriteByteStatesAsNumbers) | |
| TEST (CAIO, JsonReaderRejectsShapeMismatch) | |
| TEST (CAIO, JsonFrameStreamWriterEmitsStepTaggedFrames) | |
| TEST (CAIO, PgmBinaryOutputIsBitStable) | |
| TEST (CAIO, PpmBinaryOutputUsesCustomPalette) | |
Phase 11 tests for cellular-automata IO and image exporters.
Definition in file ca_io_test.cc.
| TEST | ( | CAIO | , |
| CsvAndJsonWriteByteStatesAsNumbers | |||
| ) |
Definition at line 298 of file ca_io_test.cc.
References Aleph::blossom_maximum_cardinality_matching(), Aleph::CA::write_csv(), and Aleph::CA::write_json().
| TEST | ( | CAIO | , |
| CsvReaderRejectsRaggedRowsAndBadScalars | |||
| ) |
Definition at line 268 of file ca_io_test.cc.
References Aleph::blossom_maximum_cardinality_matching().
| TEST | ( | CAIO | , |
| CsvRoundTripPreservesNumericSnapshot | |||
| ) |
Definition at line 252 of file ca_io_test.cc.
References Aleph::blossom_maximum_cardinality_matching(), Aleph::CA::CSV_Options::delimiter, out, and Aleph::CA::write_csv().
| TEST | ( | CAIO | , |
| JsonFrameStreamWriterEmitsStepTaggedFrames | |||
| ) |
Definition at line 322 of file ca_io_test.cc.
References Aleph::blossom_maximum_cardinality_matching(), and out.
| TEST | ( | CAIO | , |
| JsonReaderRejectsShapeMismatch | |||
| ) |
Definition at line 314 of file ca_io_test.cc.
References Aleph::blossom_maximum_cardinality_matching().
| TEST | ( | CAIO | , |
| JsonRoundTripPreservesNumericSnapshot | |||
| ) |
Definition at line 280 of file ca_io_test.cc.
References Aleph::blossom_maximum_cardinality_matching(), out, Aleph::CA::JSON_Write_Options::pretty, and Aleph::CA::write_json().
| TEST | ( | CAIO | , |
| Life105ParserMergesNegativeBlocks | |||
| ) |
Definition at line 233 of file ca_io_test.cc.
References Aleph::CA::Binary_Cell_Pattern::alive, Aleph::blossom_maximum_cardinality_matching(), Aleph::CA::Binary_Cell_Pattern::height, Aleph::CA::Binary_Cell_Pattern::origin_col, Aleph::CA::Binary_Cell_Pattern::origin_row, Aleph::CA::read_life_105(), and Aleph::CA::Binary_Cell_Pattern::width.
| TEST | ( | CAIO | , |
| Life105RoundTripPreservesFullFrame | |||
| ) |
Definition at line 219 of file ca_io_test.cc.
References Aleph::blossom_maximum_cardinality_matching(), out, Aleph::CA::read_life_105(), and Aleph::CA::write_life_105().
| TEST | ( | CAIO | , |
| Life106NormalisesNegativeCoordinates | |||
| ) |
Definition at line 190 of file ca_io_test.cc.
References Aleph::CA::Binary_Cell_Pattern::alive, Aleph::blossom_maximum_cardinality_matching(), Aleph::CA::Binary_Cell_Pattern::height, Aleph::CA::Binary_Cell_Pattern::origin_col, Aleph::CA::Binary_Cell_Pattern::origin_row, Aleph::CA::read_life_106(), and Aleph::CA::Binary_Cell_Pattern::width.
| TEST | ( | CAIO | , |
| Life106WriterProducesReadableCoordinates | |||
| ) |
Definition at line 206 of file ca_io_test.cc.
References Aleph::CA::Binary_Cell_Pattern::alive, Aleph::blossom_maximum_cardinality_matching(), Aleph::CA::Binary_Cell_Pattern::height, out, Aleph::CA::read_life_106(), Aleph::CA::Binary_Cell_Pattern::width, and Aleph::CA::write_life_106().
| TEST | ( | CAIO | , |
| PgmBinaryOutputIsBitStable | |||
| ) |
Definition at line 338 of file ca_io_test.cc.
References Aleph::blossom_maximum_cardinality_matching(), out, and Aleph::CA::write_pgm().
| TEST | ( | CAIO | , |
| PlaintextParserAcceptsStarsAndRejectsUnknownGlyphs | |||
| ) |
Definition at line 181 of file ca_io_test.cc.
References Aleph::CA::Binary_Cell_Pattern::alive, Aleph::blossom_maximum_cardinality_matching(), Aleph::CA::Binary_Cell_Pattern::height, Aleph::CA::read_plaintext_string(), and Aleph::CA::Binary_Cell_Pattern::width.
| TEST | ( | CAIO | , |
| PlaintextRoundTripPreservesFullFrame | |||
| ) |
Definition at line 165 of file ca_io_test.cc.
References Aleph::blossom_maximum_cardinality_matching(), Aleph::CA::Plaintext_Write_Options::comment, Aleph::CA::Binary_Cell_Pattern::height, Aleph::CA::read_plaintext_string(), Aleph::CA::Binary_Cell_Pattern::width, and Aleph::CA::write_plaintext_string().
| TEST | ( | CAIO | , |
| PpmBinaryOutputUsesCustomPalette | |||
| ) |
Definition at line 349 of file ca_io_test.cc.
References Aleph::blossom_maximum_cardinality_matching(), out, and Aleph::CA::write_ppm().
| TEST | ( | CAIO | , |
| RleFullFrameRoundTripPreservesExtentsAndCells | |||
| ) |
Definition at line 104 of file ca_io_test.cc.
References Aleph::blossom_maximum_cardinality_matching(), Aleph::CA::Binary_Cell_Pattern::height, Aleph::CA::RLE_Write_Options::name, Aleph::CA::read_rle_string(), Aleph::CA::Binary_Cell_Pattern::rule, Aleph::CA::Binary_Cell_Pattern::width, and Aleph::CA::write_rle_string().
| TEST | ( | CAIO | , |
| RleParserAcceptsCommentsLongRunsAndConwayAliases | |||
| ) |
Definition at line 140 of file ca_io_test.cc.
References Aleph::CA::Binary_Cell_Pattern::alive, Aleph::blossom_maximum_cardinality_matching(), Aleph::CA::Binary_Cell_Pattern::comments, Aleph::CA::Binary_Cell_Pattern::height, Aleph::CA::Binary_Cell_Pattern::name, Aleph::CA::read_rle_string(), Aleph::CA::Binary_Cell_Pattern::rule, Aleph::Array< T >::size(), and Aleph::CA::Binary_Cell_Pattern::width.
| TEST | ( | CAIO | , |
| RleParserRejectsMalformedInput | |||
| ) |
Definition at line 157 of file ca_io_test.cc.
References Aleph::blossom_maximum_cardinality_matching(), and Aleph::CA::read_rle_string().
| TEST | ( | CAIO | , |
| RleTrimmedOutputMatchesCanonicalGliderShape | |||
| ) |
Definition at line 124 of file ca_io_test.cc.
References Aleph::blossom_maximum_cardinality_matching(), Aleph::CA::read_rle_string(), Aleph::CA::RLE_Write_Options::trim_dead_border, and Aleph::CA::write_rle_string().