MCPcopy Create free account
hub / github.com/HumbleUI/Skija / assertEquals

Method assertEquals

tests/java/runner/TestRunner.java:70–79  ·  view source on GitHub ↗
(Object expected, Object actual)

Source from the content-addressed store, hash-verified

68 }
69
70 public static void assertEquals(Object expected, Object actual) {
71 try {
72 if (!Objects.equals(expected, actual))
73 runner.fail("Expected '" + expected + "'" + (expected == null ? "" : " (" + expected.getClass() + ")") + " == '" + actual + "'" + (actual == null ? "" : " (" + actual.getClass() + ")"));
74 else
75 runner.pass();
76 } catch(Exception e) {
77 runner.error(e);
78 }
79 }
80
81 public static void assertClose(float expected, float actual) {
82 assertClose(expected, actual, 0.00001f);

Callers 15

colorTypeMethod · 0.95
abcMethod · 0.80
executeMethod · 0.80
makeSubsetMethod · 0.80
executeMethod · 0.80
testICCMethod · 0.80
testExtendedApiMethod · 0.80
localClipBoundsMethod · 0.80
deviceClipBoundsMethod · 0.80
baseMethod · 0.80
swapMethod · 0.80

Calls 4

failMethod · 0.80
passMethod · 0.80
equalsMethod · 0.45
errorMethod · 0.45

Tested by

no test coverage detected