Query for Assertion using match for comparing double values in json

Viewed 38

I am having one usecase where I am calculating some values in js and trying to assert those using match. Datatype for comparison is double. Is there any way I can use match for comparing double in json with some delta provided?

For now, I have written custom javascript function which perform this comparison. But I am more inclined towards using match as it is very cleaner approach.

1 Answers
Related