|
// StringRange.cpp : �R���\�[�� �A�v���P�[�V�����̃G���g�� �|�C���g���`���܂��B
//
#include "stdafx.h"
#include <boost/test/unit_test.hpp>
using boost::unit_test::test_suite;
#define BOOST_LIB_NAME boost_unit_test_framework
#include <boost/config/auto_link.hpp>
#include "../../../ketchup/tomato/algorithm.hpp"
#include "../../../ketchup/tomato/iterator.hpp"
#include "../../../ketchup/tomato/string.hpp"
#include <algorithm>
#include <boost/range.hpp>
#include <boost/regex/mfc.hpp>
// everthing works.
typedef WTL::CString string_t;
//typedef ATL::CFixedStringT<ATL::CString, 50> string_t;
//typedef ATL::CString string_t;
/*
#ifdef _UNICODE
typedef std::wstring string_t;
#else
typedef std::string string_t;
#endif
*/
#include "conv_test.hpp"
#include "find_test.hpp"
#include "predicate_test.hpp"
#include "regex_test.hpp"
#include "replace_test.hpp"
#include "split_test.hpp"
#include "trim_test.hpp"
void test_snippets();
test_suite *init_unit_test_suite(int, char* [])
{
test_suite *test = BOOST_TEST_SUITE("StringRange test");
test->add( BOOST_TEST_CASE(&conv_test) );
test->add( BOOST_TEST_CASE(&find_test) );
test->add( BOOST_TEST_CASE(&predicate_test) );
test->add( BOOST_TEST_CASE(®ex_find_test) );
test->add( BOOST_TEST_CASE(®ex_replace_test) );
test->add( BOOST_TEST_CASE(&replace_range_test) );
test->add( BOOST_TEST_CASE(&collection_comp_test) );
test->add( BOOST_TEST_CASE(&iterator_test) );
test->add( BOOST_TEST_CASE(&trim_test) );
test_snippets();
return test;
}
/*
int _tmain(int argc, _TCHAR* argv[])
{
return 0;
}
*/
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.
A list of licenses authors might use can be found here