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

Name

Description

json1

The first JSON string.

json2

The second JSON string.

tolerance

The allowed numeric difference.

Created with MrDocs