more details in failure message
Some checks failed
studiorailgun/Renderer/pipeline/head There was a failure building this commit
Some checks failed
studiorailgun/Renderer/pipeline/head There was a failure building this commit
This commit is contained in:
parent
a35e63920f
commit
c8faecd140
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user