Like compareJsonWithTolerance, but operates directly on the dynamics.

Synopsis

Declared in <folly/json/JsonTestUtil.h>

bool
compareDynamicWithTolerance(
    dynamic const& obj1,
    dynamic const& obj2,
    double tolerance);

Return Value

True if both dynamics match within the tolerance.

Parameters

Name

Description

obj1

The first dynamic.

obj2

The second dynamic.

tolerance

The allowed numeric difference.

Created with MrDocs