4.e.i. Append FormatNumericUnits(durationFormat, duration, unit, signDisplayed) to result.
This step doesn't handle the case when FormatNumericUnits returns an empty list.
Instead something like:
4.e.i. Let numericPartsList be FormatNumericUnits(durationFormat, duration, unit, signDisplayed).
4.e.ii. If numericPartsList is not empty, append numericPartsList to result.
FormatNumericUnits appends formatted elements to numericPartsList instead of using list-concatenation.
16.b. Append FormatNumericHours(durationFormat, hoursValue, signDisplayed) to numericPartsList.
Needs to be:
16.b. Let hoursParts be FormatNumericHours(durationFormat, hoursValue, signDisplayed).
16.c. Set numericPartsList to the list-concatenation of numericPartsList and hoursParts.
Same goes for the calls to FormatNumericMinutes and FormatNumericSeconds.
Two issues:
This step doesn't handle the case when
FormatNumericUnits
returns an empty list.Instead something like:
Needs to be:
Same goes for the calls to
FormatNumericMinutes
andFormatNumericSeconds
.