Open rahul-p-rajesh opened 11 months ago
4 files ±0 316 suites ±0 32m 36s :stopwatch: +3s 1 136 tests ±0 1 136 :white_check_mark: ±0 0 :zzz: ±0 0 :x: ±0 1 146 runs ±0 1 146 :white_check_mark: ±0 0 :zzz: ±0 0 :x: ±0
Results for commit f15d131e. ± Comparison against base commit 389047b0.
:recycle: This comment has been updated with latest results.
All modified and coverable lines are covered by tests :white_check_mark:
Comparison is base (
389047b
) 81.69% compared to head (f15d131
) 81.70%. Report is 3 commits behind head on main.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Problem: On Providing an input like 44H, the output is 1 day. Fix: Added an allowApproxUnit flag which on false keeps on checking the for time unit which is not approximate
That's the whole point of the function though. In that example, 'day' is the most significant unit. The behavior you're describing is something else, so we shouldn't overload the existing function with a boolean flag (code smell!). We'd want a whole new function. That said, given we already can represent this as a 1d20h and as 1d, do we really need a third representation? The UX consistency here is concerning.
Description
Problem: On Providing an input like 44H, the output is 1 day. Fix: Added an allowApproxUnit flag which on false keeps on checking the for time unit which is not approximate.
Checklist: