mirror of
https://github.com/mat007/turtle.git
synced 2026-06-22 12:13:43 +00:00
Fixed documentation typos
git-svn-id: https://svn.code.sf.net/p/turtle/code/trunk@692 860be788-9bd5-4423-9f1e-828f051e677b
This commit is contained in:
parent
82a0d3b146
commit
7c3714169d
2 changed files with 2 additions and 2 deletions
|
|
@ -48,6 +48,6 @@ BOOST_AUTO_TEST_CASE( method_is_called )
|
||||||
my_class c( mock );
|
my_class c( mock );
|
||||||
bool done = false;
|
bool done = false;
|
||||||
MOCK_EXPECT( mock.method ).once().calls( boost::lambda::var( done ) = true ); // when method is called it will set done to true
|
MOCK_EXPECT( mock.method ).once().calls( boost::lambda::var( done ) = true ); // when method is called it will set done to true
|
||||||
wait( done, boost::bind( &my_class::flush, &c ) ); // just wait on done flushing from time to time
|
wait( done, boost::bind( &my_class::flush, &c ) ); // just wait on done, flushing from time to time
|
||||||
}
|
}
|
||||||
//]
|
//]
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@ namespace
|
||||||
|
|
||||||
namespace mock // it could also be in the namespace of 'my_class'
|
namespace mock // it could also be in the namespace of 'my_class'
|
||||||
{
|
{
|
||||||
bool operator==( const my_class& actual, const std::string& expected ) // the first part of trick is to compare to a string
|
bool operator==( const my_class& actual, const std::string& expected ) // the first part of the trick is to compare to a string
|
||||||
{
|
{
|
||||||
return boost::lexical_cast< std::string >( actual ) == expected;
|
return boost::lexical_cast< std::string >( actual ) == expected;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue