mirror of
https://github.com/mat007/turtle.git
synced 2026-06-22 12:13:43 +00:00
Cleanup
git-svn-id: https://svn.code.sf.net/p/turtle/code/trunk@581 860be788-9bd5-4423-9f1e-828f051e677b
This commit is contained in:
parent
970b9b6b7b
commit
3c0bb8e16e
8 changed files with 79 additions and 82 deletions
|
|
@ -66,7 +66,7 @@ namespace mock
|
|||
{
|
||||
public:
|
||||
explicit matcher( const constraint< Constraint >& c )
|
||||
: c_( c.f_ )
|
||||
: c_( c.c_ )
|
||||
{}
|
||||
virtual bool operator()( Actual actual )
|
||||
{
|
||||
|
|
@ -90,19 +90,19 @@ namespace mock
|
|||
{
|
||||
public:
|
||||
explicit matcher( const Functor& f )
|
||||
: f_( f )
|
||||
: c_( f )
|
||||
{}
|
||||
virtual bool operator()( Actual actual )
|
||||
{
|
||||
return f_( actual );
|
||||
return c_( actual );
|
||||
}
|
||||
private:
|
||||
virtual void serialize( std::ostream& s ) const
|
||||
{
|
||||
s << mock::format( f_ );
|
||||
s << mock::format( c_ );
|
||||
}
|
||||
private:
|
||||
Functor f_;
|
||||
Functor c_;
|
||||
};
|
||||
} // mock
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue