Steps to reproduce :
new LenientJsonArrayPartialMatcher(), // comparing array using lenient mode (ignore array order and extra items)
new LenientJsonObjectPartialMatcher(), // comparing object using lenient mode (ignoring extra properties)
new LenientNumberPrimitivePartialMatcher(new StrictPrimitivePartialMatcher()) // comparing primitive types and manage numbers (100.00 == 100)
);
Pass the below json for both expected and actual,
{ "a":[] }
Print the similarity score, expected 100, actual NaN
Steps to reproduce :
Use 0.0.8 version of the library.
Use
Pass the below json for both expected and actual,
{ "a":[] }Print the similarity score, expected 100, actual NaN