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

Tests for the non-throwing try_read_* parser overloads (ca-io.H). More...

#include <sstream>
#include <string>
#include <gtest/gtest.h>
#include <ca-io.H>
Include dependency graph for ca_io_expected_test.cc:

Go to the source code of this file.

Functions

 TEST (CaIoExpected, RleSuccess)
 
 TEST (CaIoExpected, RleErrorCarriesMessage)
 
 TEST (CaIoExpected, RleIstreamOverload)
 
 TEST (CaIoExpected, RleEmptyInputFails)
 
 TEST (CaIoExpected, PlaintextSuccessAndError)
 
 TEST (CaIoExpected, Life105SuccessAndError)
 
 TEST (CaIoExpected, Life106SuccessAndError)
 
 TEST (CaIoExpected, LifeEmptyInputFails)
 
 TEST (CaIoExpected, CsvSuccessAndError)
 
 TEST (CaIoExpected, CsvEmptyInputHandled)
 
 TEST (CaIoExpected, ThrowingReadersStillThrow)
 

Detailed Description

Tests for the non-throwing try_read_* parser overloads (ca-io.H).

Each try_read_* must return a value on valid input and an error message on invalid input, while the corresponding throwing reader keeps throwing.

Definition in file ca_io_expected_test.cc.

Function Documentation

◆ TEST() [1/11]

TEST ( CaIoExpected  ,
CsvEmptyInputHandled   
)

Definition at line 153 of file ca_io_expected_test.cc.

References Aleph::blossom_maximum_cardinality_matching(), and r.

◆ TEST() [2/11]

TEST ( CaIoExpected  ,
CsvSuccessAndError   
)

◆ TEST() [3/11]

TEST ( CaIoExpected  ,
Life105SuccessAndError   
)

◆ TEST() [4/11]

TEST ( CaIoExpected  ,
Life106SuccessAndError   
)

◆ TEST() [5/11]

TEST ( CaIoExpected  ,
LifeEmptyInputFails   
)

◆ TEST() [6/11]

TEST ( CaIoExpected  ,
PlaintextSuccessAndError   
)

◆ TEST() [7/11]

TEST ( CaIoExpected  ,
RleEmptyInputFails   
)

◆ TEST() [8/11]

TEST ( CaIoExpected  ,
RleErrorCarriesMessage   
)

◆ TEST() [9/11]

TEST ( CaIoExpected  ,
RleIstreamOverload   
)

◆ TEST() [10/11]

TEST ( CaIoExpected  ,
RleSuccess   
)

◆ TEST() [11/11]