mirror of
https://github.com/mat007/turtle.git
synced 2026-06-22 12:13:43 +00:00
Added formatting specializations for Boost.Assign
git-svn-id: https://svn.code.sf.net/p/turtle/code/trunk@107 860be788-9bd5-4423-9f1e-828f051e677b
This commit is contained in:
parent
cf9bb5d89b
commit
a1149fe872
2 changed files with 31 additions and 1 deletions
|
|
@ -7,13 +7,13 @@
|
|||
//
|
||||
|
||||
#include <turtle/format.hpp>
|
||||
#include <boost/assign.hpp>
|
||||
#include <ostream>
|
||||
#include <deque>
|
||||
#include <list>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
#include <set>
|
||||
#include <boost/assign.hpp>
|
||||
|
||||
#include <boost/test/auto_unit_test.hpp>
|
||||
#define BOOST_LIB_NAME boost_unit_test_framework
|
||||
|
|
@ -150,3 +150,13 @@ BOOST_AUTO_TEST_CASE( std_multisets_are_serialized )
|
|||
s.insert( 42 );
|
||||
BOOST_CHECK_EQUAL( "(12,42)", mock::format( s ) );
|
||||
}
|
||||
|
||||
BOOST_AUTO_TEST_CASE( boost_assign_list_of_are_serialized )
|
||||
{
|
||||
BOOST_CHECK_EQUAL( "(12,42)", mock::format( boost::assign::list_of( 12 )( 42 ) ) );
|
||||
}
|
||||
|
||||
BOOST_AUTO_TEST_CASE( boost_assign_map_list_of_are_serialized )
|
||||
{
|
||||
BOOST_CHECK_EQUAL( "((12,\"12\"),(42,\"42\"))", mock::format( boost::assign::map_list_of( 12, "12" )( 42, "42" ) ) );
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue