FOLLY_EXPECT_JSON_NEAR

GTest predicate asserting two JSON strings are equal within a tolerance.

Synopsis

Declared in <folly/json/JsonTestUtil.h>

#define FOLLY_EXPECT_JSON_NEAR(json1, json2, tolerance)

Parameters

NameDescription
json1The first JSON string.
json2The second JSON string.
toleranceThe allowed numeric difference.