more details in failure message
Some checks failed
studiorailgun/Renderer/pipeline/head There was a failure building this commit

This commit is contained in:
austin 2024-08-20 15:11:38 -04:00
parent a35e63920f
commit c8faecd140

View File

@ -65,8 +65,13 @@ public class TestRenderingUtils {
Math.abs(sourceBlue - renderBlue) > COLOR_COMPARE_THRESHOLD ||
Math.abs(sourceAlpha - renderAlpha) > COLOR_COMPARE_THRESHOLD
){
onFailure.run();
fail("Colors aren't approximately the same!");
String failMessage = "Colors aren't approximately the same!\n" +
"Color from disk: " + sourceRed + "," + sourceGreen + "," + sourceBlue + "," + sourceAlpha + "\n" +
"Color from render: " + renderRed + "," + renderGreen + "," + renderBlue + "," + renderAlpha + "\n"
;
fail(failMessage);
}
}
}