#include <folly/json/JsonTestUtil.h>
#include <algorithm>
#include <cmath>
#include <folly/Conv.h>
#include <folly/json/json.h>
#include <folly/lang/Assume.h>
namespace folly {
bool compareJson(StringPiece json1, StringPiece json2) { … }
bool compareJsonWithNestedJson(
StringPiece json1, StringPiece json2, unsigned strNestingDepth) { … }
bool compareDynamicWithNestedJson(
dynamic const& obj1, dynamic const& obj2, unsigned strNestingDepth) { … }
namespace {
bool isClose(double x, double y, double tolerance) { … }
}
bool compareDynamicWithTolerance(
const dynamic& obj1, const dynamic& obj2, double tolerance) { … }
bool compareJsonWithTolerance(
StringPiece json1, StringPiece json2, double tolerance) { … }
}