git-svn-id: https://svn.code.sf.net/p/turtle/code/trunk@184 860be788-9bd5-4423-9f1e-828f051e677b
This commit is contained in:
mat007 2011-01-13 21:35:52 +00:00
parent b654bc6bbb
commit 2b5385be40
4 changed files with 19 additions and 19 deletions

View file

@ -327,15 +327,15 @@ namespace
return std::abs( actual - expected_ ) < threshold_;
}
friend std::ostream& operator<<( std::ostream& os, const near_constraint& c )
friend std::ostream& operator<<( std::ostream& s, const near_constraint& c )
{
return os << "std::abs( _ - " << c.expected_ << " ) < " << c.threshold_;
return s << "std::abs( _ - " << c.expected_ << " ) < " << c.threshold_;
}
//template< typename Actual >
//void explain( std::ostream& os, Actual actual ) const
//void explain( std::ostream& s, Actual actual ) const
//{
// os << std::abs( actual - expected_ ) << " >= " << threshold_;
// s << std::abs( actual - expected_ ) << " >= " << threshold_;
//}
Expected expected_;