Added mock::contain constraint

git-svn-id: https://svn.code.sf.net/p/turtle/code/trunk@109 860be788-9bd5-4423-9f1e-828f051e677b
This commit is contained in:
mat007 2010-02-01 22:41:16 +00:00
parent 89d972bda5
commit 05f7625d1c
3 changed files with 29 additions and 0 deletions

View file

@ -165,3 +165,9 @@ BOOST_AUTO_TEST_CASE( evaluate )
BOOST_CHECK( mock::evaluate.functor_( &return_true ) );
BOOST_CHECK( ! mock::evaluate.functor_( &return_false ) );
}
BOOST_AUTO_TEST_CASE( contain )
{
BOOST_CHECK( mock::contain( "string" ).functor_( "this is a string" ) );
BOOST_CHECK( ! mock::contain( "not found" ).functor_( "this is a string" ) );
}