Lines Matching refs:expected
163 static void assertIntEquals(int result, int expected) { in assertIntEquals() argument
164 if (expected != result) { in assertIntEquals()
165 throw new Error("Expected: " + expected + ", found: " + result); in assertIntEquals()
169 static void assertFloatEquals(float result, float expected) { in assertFloatEquals() argument
170 if (expected != result) { in assertFloatEquals()
171 throw new Error("Expected: " + expected + ", found: " + result); in assertFloatEquals()
175 static void assertDoubleEquals(double result, double expected) { in assertDoubleEquals() argument
176 if (expected != result) { in assertDoubleEquals()
177 throw new Error("Expected: " + expected + ", found: " + result); in assertDoubleEquals()
181 static void assertInstanceOf(Object result, Class<?> expected) { in assertInstanceOf() argument
182 if (result.getClass() != expected) { in assertInstanceOf()
183 throw new Error("Expected type: " + expected + ", found : " + result.getClass()); in assertInstanceOf()