OpenTREP Logo  0.6.0
C++ Open Travel Request Parsing Library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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

#define BOOST_TEST_DYN_LINK

Definition at line 15 of file PartitionTestSuite.cpp.

#define BOOST_TEST_MAIN

Definition at line 16 of file PartitionTestSuite.cpp.

#define BOOST_TEST_MODULE   PartitionTestSuite

Definition at line 17 of file PartitionTestSuite.cpp.

Function Documentation

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

Test the partitioning algorithm with a small string

Definition at line 56 of file PartitionTestSuite.cpp.

References OPENTREP::StringPartition::size().