A bare Math.floor(passed / total * 100) reads 0% for 70 of 7,972
passing (0.9%) and 100% for 9,999 of 10,000, both of which tell a
reader something false: "nothing passes" / "nothing fails". A partial
result is therefore kept strictly inside 1..99. No entities to measure
reads 100, the same convention calculateSummary always used.
The one pass-percentage rounding rule (#6470).
A bare
Math.floor(passed / total * 100)reads0%for 70 of 7,972 passing (0.9%) and100%for 9,999 of 10,000, both of which tell a reader something false: "nothing passes" / "nothing fails". A partial result is therefore kept strictly inside 1..99. No entities to measure reads 100, the same conventioncalculateSummaryalways used.