KiCad PCB EDA Suite
Loading...
Searching...
No Matches
test_csv.cpp File Reference
#include <boost/test/unit_test.hpp>
#include <io/csv.h>
#include <wx/sstream.h>

Go to the source code of this file.

Classes

struct  CsvRoundTripCase
 
struct  CsvDecodeCase
 

Functions

template<typename T >
std::ostream & boost_test_print_type (std::ostream &os, const std::vector< std::vector< T > > &aTable)
 Define a stream function for logging this type.
 
static bool TableDataEqual (const std::vector< std::vector< wxString > > &aExpected, const std::vector< std::vector< wxString > > &aActual)
 
 BOOST_AUTO_TEST_CASE (BasicRoundTrips)
 
 BOOST_AUTO_TEST_CASE (BasicDecode)
 

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/2]

BOOST_AUTO_TEST_CASE ( BasicDecode  )

Definition at line 131 of file test_csv.cpp.

References AutoDecodeCSV(), BOOST_CHECK_PREDICATE(), and TableDataEqual().

◆ BOOST_AUTO_TEST_CASE() [2/2]

BOOST_AUTO_TEST_CASE ( BasicRoundTrips  )

◆ boost_test_print_type()

template<typename T >
std::ostream & boost_test_print_type ( std::ostream &  os,
const std::vector< std::vector< T > > &  aTable 
)

Define a stream function for logging this type.

Definition at line 31 of file test_csv.cpp.

◆ TableDataEqual()

static bool TableDataEqual ( const std::vector< std::vector< wxString > > &  aExpected,
const std::vector< std::vector< wxString > > &  aActual 
)
static

Definition at line 51 of file test_csv.cpp.

References BOOST_TEST_MESSAGE().

Referenced by BOOST_AUTO_TEST_CASE().