Hello there. I’m currently setting up a suite of test cases in Postman (first time using it, but it generally seems nice and easy so far, but have come across a slight issue. Due to the numbers and timescales we work with, there are acceptable variances due to rounding. Is there anyone who might be able to advise on how I can write my tests to allow this, please? My current test is:
pm.expect(regularPayment).to.eql(540.68);
But the result is an acceptable 540.69.
Thank you in advance.