Vowpal Wabbit
Functions
ut_util.h File Reference
#include "gtest/gtest.h"
#include "gmock/gmock.h"

Go to the source code of this file.

Functions

 MATCHER_P (FloatNearPointwise, tol, "Out of range")
 

Function Documentation

◆ MATCHER_P()

MATCHER_P ( FloatNearPointwise  ,
tol  ,
"Out of range"   
)

Definition at line 6 of file ut_util.h.

7 {
8  return (std::get<0>(arg) > std::get<1>(arg) - tol && std::get<0>(arg) < std::get<1>(arg) + tol);
9 }