Skip to content

Comments

docs(expect): clarify the tolerance in toBeCloseTo#6292

Merged
kt3k merged 2 commits intodenoland:mainfrom
dandv:patch-3
Dec 23, 2024
Merged

docs(expect): clarify the tolerance in toBeCloseTo#6292
kt3k merged 2 commits intodenoland:mainfrom
dandv:patch-3

Conversation

@dandv
Copy link
Contributor

@dandv dandv commented Dec 22, 2024

I was looking for a more pedestrian matcher, that would assert a number being within a range, or ±X of the expected value. Clarified toBeCloseTo as useful for avoiding floating point precision errors instead.

@dandv dandv requested a review from kt3k as a code owner December 22, 2024 19:16
@codecov
Copy link

codecov bot commented Dec 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.34%. Comparing base (d625a03) to head (db51f96).
Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #6292   +/-   ##
=======================================
  Coverage   96.34%   96.34%           
=======================================
  Files         547      547           
  Lines       41661    41661           
  Branches     6313     6313           
=======================================
+ Hits        40137    40138    +1     
+ Misses       1482     1481    -1     
  Partials       42       42           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@kt3k kt3k left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Nice docs!

@kt3k kt3k merged commit c65c048 into denoland:main Dec 23, 2024
17 checks passed
@dandv dandv deleted the patch-3 branch December 23, 2024 06:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants