Skip to content

Commit

Permalink
Fix formatting so that all digits show upon failure (cashapp#1274)
Browse files Browse the repository at this point in the history
Co-authored-by: Andreas Kindblom <[email protected]>
  • Loading branch information
elitans and Andreas Kindblom authored Jan 31, 2024
1 parent 0fcbf73 commit 5ed5b65
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ internal object ImageUtils {
var error: String? = null
val imageName = getName(relativePath)
if (percentDifference > maxPercentDifferent) {
error = String.format("Images differ (by %.1f%%)", percentDifference)
error = String.format("Images differ (by %f%%)", percentDifference)
} else if (Math.abs(goldenImageWidth - imageWidth) >= 2) {
error = "Widths differ too much for " + imageName + ": " +
goldenImageWidth + "x" + goldenImageHeight +
Expand Down

0 comments on commit 5ed5b65

Please sign in to comment.