denoland / std

The Deno Standard Library
https://jsr.io/@std
MIT License
3.22k stars 621 forks source link

test(bytes): document the cases being tested for equals/startsWith/endsWith #6163

Closed lionel-rowe closed 3 weeks ago

lionel-rowe commented 3 weeks ago

Current tests are kinda confusing and unclear what's being tested. It could help resolve confusion like https://github.com/denoland/std/issues/6146 if there was a specific test case (startsWith() ... `true` where `source` starts with `prefix`) that could be pointed to as failing upon the proposed change.

codecov[bot] commented 3 weeks ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 96.52%. Comparing base (2d9e212) to head (984daab). Report is 3 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #6163 +/- ## ======================================= Coverage 96.52% 96.52% ======================================= Files 536 536 Lines 40769 40769 Branches 6118 6118 ======================================= Hits 39351 39351 Misses 1374 1374 Partials 44 44 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.