git-svn-id: https://svn.code.sf.net/p/turtle/code/trunk@581 860be788-9bd5-4423-9f1e-828f051e677b
This commit is contained in:
mat007 2013-01-07 16:16:38 +00:00
parent 970b9b6b7b
commit 3c0bb8e16e
8 changed files with 79 additions and 82 deletions

View file

@ -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