mirror of
https://github.com/mat007/turtle.git
synced 2026-06-22 12:13:43 +00:00
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:
parent
89d972bda5
commit
05f7625d1c
3 changed files with 29 additions and 0 deletions
|
|
@ -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" ) );
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue