mirror of
https://github.com/boostorg/core.git
synced 2025-05-09 23:03:54 +00:00
Untabify lightweight_test_with_fail
This commit is contained in:
parent
c6d72da515
commit
35a025d59b
@ -13,17 +13,17 @@ template <typename T>
|
||||
struct with_tolerance
|
||||
{
|
||||
with_tolerance( T tolerance ): tolerance( tolerance )
|
||||
{
|
||||
}
|
||||
{
|
||||
}
|
||||
|
||||
bool operator()( T lhs, T rhs ) const
|
||||
bool operator()( T lhs, T rhs ) const
|
||||
{
|
||||
return std::abs( lhs - rhs ) <= tolerance;
|
||||
}
|
||||
|
||||
private:
|
||||
|
||||
T tolerance;
|
||||
T tolerance;
|
||||
};
|
||||
|
||||
void test_tolerance_predicate()
|
||||
|
Loading…
x
Reference in New Issue
Block a user