OpenTREP Logo  0.07.18
C++ Open Travel Request Parsing Library
Loading...
Searching...
No Matches
PartitionTestSuite.cpp File Reference
#include <sstream>
#include <fstream>
#include <string>
#include <list>
#include <boost/test/unit_test.hpp>
#include <opentrep/bom/StringPartition.hpp>

Go to the source code of this file.

Classes

struct  UnitTestConfig
 

Macros

#define BOOST_TEST_DYN_LINK
 
#define BOOST_TEST_MAIN
 
#define BOOST_TEST_MODULE   PartitionTestSuite
 

Functions

std::ofstream utfReportStream ("PartitionTestSuite_utfresults.xml")
 
 BOOST_GLOBAL_FIXTURE (UnitTestConfig)
 
 BOOST_AUTO_TEST_CASE (partition_small_string)
 

Macro Definition Documentation

◆ BOOST_TEST_DYN_LINK

#define BOOST_TEST_DYN_LINK

Definition at line 15 of file PartitionTestSuite.cpp.

◆ BOOST_TEST_MAIN

#define BOOST_TEST_MAIN

Definition at line 16 of file PartitionTestSuite.cpp.

◆ BOOST_TEST_MODULE

#define BOOST_TEST_MODULE   PartitionTestSuite

Definition at line 17 of file PartitionTestSuite.cpp.

Function Documentation

◆ utfReportStream()

std::ofstream utfReportStream ( "PartitionTestSuite_utfresults.xml" )

◆ BOOST_GLOBAL_FIXTURE()

BOOST_GLOBAL_FIXTURE ( UnitTestConfig )

◆ BOOST_AUTO_TEST_CASE()

BOOST_AUTO_TEST_CASE ( partition_small_string )

Test the partitioning algorithm with a small string

Definition at line 60 of file PartitionTestSuite.cpp.

References BOOST_AUTO_TEST_CASE(), and OPENTREP::StringPartition::size().

Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), and BOOST_AUTO_TEST_CASE().