We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello, I've an issue with the method closeTo.
closeTo
expect(1682.6).to.be.closeTo(1682.7, 0.1) returns an error ❌ while I was expecting the test to pass.
expect(1682.6).to.be.closeTo(1682.7, 0.1)
It seems to me that when you have a number with more than 3 digits this fails ❌ .
expect(168.6).to.be.closeTo(168.7, 0.1) is passing ✅ , while expect(1682.6).to.be.closeTo(1682.7, 0.1) doesn't ❌.
expect(168.6).to.be.closeTo(168.7, 0.1)
In the meantime, expect(1682.6).to.be.closeTo(1682.7, 0.2) is passing ✅.
expect(1682.6).to.be.closeTo(1682.7, 0.2)
Can you please tell me what's going on or if I misunderstand something?
The text was updated successfully, but these errors were encountered:
Any update on this one?
Sorry, something went wrong.
No branches or pull requests
Hello,
I've an issue with the method
closeTo
.expect(1682.6).to.be.closeTo(1682.7, 0.1)
returns an error ❌ while I was expecting the test to pass.It seems to me that when you have a number with more than 3 digits this fails ❌ .
expect(168.6).to.be.closeTo(168.7, 0.1)
is passing ✅ , whileexpect(1682.6).to.be.closeTo(1682.7, 0.1)
doesn't ❌.In the meantime,
expect(1682.6).to.be.closeTo(1682.7, 0.2)
is passing ✅.Can you please tell me what's going on or if I misunderstand something?
The text was updated successfully, but these errors were encountered: