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

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>
Include dependency graph for ca_io_test.cc:

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)
 

Detailed Description

Phase 11 tests for cellular-automata IO and image exporters.

Definition in file ca_io_test.cc.

Function Documentation

◆ TEST() [1/18]

TEST ( CAIO  ,
CsvAndJsonWriteByteStatesAsNumbers   
)

◆ TEST() [2/18]

TEST ( CAIO  ,
CsvReaderRejectsRaggedRowsAndBadScalars   
)

Definition at line 268 of file ca_io_test.cc.

References Aleph::blossom_maximum_cardinality_matching().

◆ TEST() [3/18]

TEST ( CAIO  ,
CsvRoundTripPreservesNumericSnapshot   
)

◆ TEST() [4/18]

TEST ( CAIO  ,
JsonFrameStreamWriterEmitsStepTaggedFrames   
)

Definition at line 322 of file ca_io_test.cc.

References Aleph::blossom_maximum_cardinality_matching(), and out.

◆ TEST() [5/18]

TEST ( CAIO  ,
JsonReaderRejectsShapeMismatch   
)

Definition at line 314 of file ca_io_test.cc.

References Aleph::blossom_maximum_cardinality_matching().

◆ TEST() [6/18]

TEST ( CAIO  ,
JsonRoundTripPreservesNumericSnapshot   
)

◆ TEST() [7/18]

◆ TEST() [8/18]

TEST ( CAIO  ,
Life105RoundTripPreservesFullFrame   
)

◆ TEST() [9/18]

◆ TEST() [10/18]

◆ TEST() [11/18]

TEST ( CAIO  ,
PgmBinaryOutputIsBitStable   
)

◆ TEST() [12/18]

◆ TEST() [13/18]

◆ TEST() [14/18]

TEST ( CAIO  ,
PpmBinaryOutputUsesCustomPalette   
)

◆ TEST() [15/18]

◆ TEST() [16/18]

◆ TEST() [17/18]

TEST ( CAIO  ,
RleParserRejectsMalformedInput   
)

◆ TEST() [18/18]

TEST ( CAIO  ,
RleTrimmedOutputMatchesCanonicalGliderShape   
)