/external/easymock/src/org/easymock/internal/matchers/ |
ArrayEquals.java | 31 public boolean matches(Object actual) {
34 && (actual == null || actual instanceof boolean[])) {
35 return Arrays.equals((boolean[]) expected, (boolean[]) actual);
37 && (actual == null || actual instanceof byte[])) {
38 return Arrays.equals((byte[]) expected, (byte[]) actual);
40 && (actual == null || actual instanceof char[])) {
41 return Arrays.equals((char[]) expected, (char[]) actual);
[all...] |
/art/libartbase/base/ |
utils_test.cc | 45 std::vector<std::string> actual; local 50 actual.clear(); 51 Split("", ':', &actual); 52 EXPECT_EQ(expected, actual); 54 actual.clear(); 55 Split(":", ':', &actual); 56 EXPECT_EQ(expected, actual); 61 actual.clear(); 62 Split(":foo", ':', &actual); 63 EXPECT_EQ(expected, actual); [all...] |
/external/compiler-rt/test/builtins/Unit/ |
truncdfsf2_test.c | 22 float actual = __truncdfsf2(a); local 25 if (actual != expected) { 27 "expected %f\n", a, actual, expected);
|
extebdsfdf2vfp_test.c | 25 double actual = __extendsfdf2vfp(a); local 27 if (actual != expected) 29 a, actual, expected); 30 return actual != expected;
|
fixdfsivfp_test.c | 24 int actual = __fixdfsivfp(a); local 26 if (actual != expected) 28 a, actual, expected); 29 return actual != expected;
|
fixunssfsivfp_test.c | 24 unsigned int actual = __fixunssfsivfp(a); local 26 if (actual != expected) 28 a, actual, expected); 29 return actual != expected;
|
/external/epid-sdk/epid/common-testhelper/ |
errors-testhelper.h | 35 #define THROW_ON_EPIDERR(actual) \ 36 if (kEpidNoErr != actual) { \ 38 throw std::logic_error(std::string("Failed to call: ") + #actual); \ 42 #define THROW_NE(expected, actual) \ 43 if (expected != actual) { \ 45 throw std::logic_error(std::string("Failed to call: ") + #actual); \
|
/art/test/406-fields/src/ |
TestCase.java | 38 public static void assertEquals(String message, int expected, int actual) { 39 if (expected != actual) { 44 public static void assertEquals(int expected, int actual) { 45 if (expected != actual) { 46 throw new AssertionError("Expected " + expected + " got " + actual); 70 public static void assertEquals(Object expected, Object actual) { 71 if (!expected.equals(actual)) { 72 String msg = "Expected \"" + expected + "\" but got \"" + actual + "\""; 77 public static void assertNotEquals(int expected, int actual) { 78 if (expected == actual) { [all...] |
/art/test/407-arrays/src/ |
TestCase.java | 38 public static void assertEquals(String message, int expected, int actual) { 39 if (expected != actual) { 44 public static void assertEquals(int expected, int actual) { 45 if (expected != actual) { 46 throw new AssertionError("Expected " + expected + " got " + actual); 70 public static void assertEquals(Object expected, Object actual) { 71 if (!expected.equals(actual)) { 72 String msg = "Expected \"" + expected + "\" but got \"" + actual + "\""; 77 public static void assertNotEquals(int expected, int actual) { 78 if (expected == actual) { [all...] |
/art/test/412-new-array/src/ |
TestCase.java | 38 public static void assertEquals(String message, int expected, int actual) { 39 if (expected != actual) { 44 public static void assertEquals(int expected, int actual) { 45 if (expected != actual) { 46 throw new AssertionError("Expected " + expected + " got " + actual); 70 public static void assertEquals(Object expected, Object actual) { 71 if (!expected.equals(actual)) { 72 String msg = "Expected \"" + expected + "\" but got \"" + actual + "\""; 77 public static void assertNotEquals(int expected, int actual) { 78 if (expected == actual) { [all...] |
/art/test/414-static-fields/src/ |
TestCase.java | 38 public static void assertEquals(String message, int expected, int actual) { 39 if (expected != actual) { 44 public static void assertEquals(int expected, int actual) { 45 if (expected != actual) { 46 throw new AssertionError("Expected " + expected + " got " + actual); 70 public static void assertEquals(Object expected, Object actual) { 71 if (!expected.equals(actual)) { 72 String msg = "Expected \"" + expected + "\" but got \"" + actual + "\""; 77 public static void assertNotEquals(int expected, int actual) { 78 if (expected == actual) { [all...] |
/external/testng/src/main/java/org/testng/ |
AssertJUnit.java | 73 static public void assertEquals(String message, Object expected, Object actual) { 74 if((expected == null) && (actual == null)) { 77 if((expected != null) && expected.equals(actual)) { 80 failNotEquals(message, expected, actual); 87 static public void assertEquals(Object expected, Object actual) { 88 assertEquals(null, expected, actual); 94 static public void assertEquals(String message, String expected, String actual) { 95 if((expected == null) && (actual == null)) { 98 if((expected != null) && expected.equals(actual)) { 101 throw new AssertionError(format(message, expected, actual)); [all...] |
/external/mockito/src/main/java/org/mockito/internal/matchers/ |
ArrayEquals.java | 17 public boolean matches(Object actual) { 19 if (wanted == null || actual == null) { 20 return super.matches(actual); 21 } else if (wanted instanceof boolean[] && actual instanceof boolean[]) { 22 return Arrays.equals((boolean[]) wanted, (boolean[]) actual); 23 } else if (wanted instanceof byte[] && actual instanceof byte[]) { 24 return Arrays.equals((byte[]) wanted, (byte[]) actual); 25 } else if (wanted instanceof char[] && actual instanceof char[]) { 26 return Arrays.equals((char[]) wanted, (char[]) actual); 27 } else if (wanted instanceof double[] && actual instanceof double[]) [all...] |
/external/okhttp/okhttp-ws-tests/ |
fuzzingserver-update-expected.sh | 6 if [ ! -f target/fuzzingserver-actual.txt ]; then 11 cp target/fuzzingserver-actual.txt fuzzingserver-expected.txt
|
/art/test/021-string2/src/junit/framework/ |
Assert.java | 62 static public void assertEquals(String message, Object expected, Object actual) { 63 if (expected == null && actual == null) 65 if (expected != null && expected.equals(actual)) 67 failNotEquals(message, expected, actual); 73 static public void assertEquals(Object expected, Object actual) { 74 assertEquals(null, expected, actual); 79 static public void assertEquals(String message, String expected, String actual) { 80 if (expected == null && actual == null) 82 if (expected != null && expected.equals(actual)) 85 throw new ComparisonFailure(cleanMessage, expected, actual); [all...] |
/art/test/082-inline-execute/src/junit/framework/ |
Assert.java | 62 static public void assertEquals(String message, Object expected, Object actual) { 63 if (expected == null && actual == null) 65 if (expected != null && expected.equals(actual)) 67 failNotEquals(message, expected, actual); 73 static public void assertEquals(Object expected, Object actual) { 74 assertEquals(null, expected, actual); 79 static public void assertEquals(String message, String expected, String actual) { 80 if (expected == null && actual == null) 82 if (expected != null && expected.equals(actual)) 85 throw new ComparisonFailure(cleanMessage, expected, actual); [all...] |
/external/junit/src/main/java/junit/framework/ |
Assert.java | 71 static public void assertEquals(String message, Object expected, Object actual) { 72 if (expected == null && actual == null) { 75 if (expected != null && expected.equals(actual)) { 78 failNotEquals(message, expected, actual); 85 static public void assertEquals(Object expected, Object actual) { 86 assertEquals(null, expected, actual); 92 static public void assertEquals(String message, String expected, String actual) { 93 if (expected == null && actual == null) { 96 if (expected != null && expected.equals(actual)) { 100 throw new ComparisonFailure(cleanMessage, expected, actual); [all...] |
TestCase.java | 243 public static void assertEquals(String message, Object expected, Object actual) { 244 Assert.assertEquals(message, expected, actual); 252 public static void assertEquals(Object expected, Object actual) { 253 Assert.assertEquals(expected, actual); 260 public static void assertEquals(String message, String expected, String actual) { 261 Assert.assertEquals(message, expected, actual); 268 public static void assertEquals(String expected, String actual) { 269 Assert.assertEquals(expected, actual); 278 public static void assertEquals(String message, double expected, double actual, double delta) { 279 Assert.assertEquals(message, expected, actual, delta) [all...] |
/cts/tests/tests/content/src/android/content/pm/cts/ |
PackageInfoTest.java | 66 private void checkPkgInfoSame(PackageInfo expected, PackageInfo actual) { 67 assertEquals(expected.packageName, actual.packageName); 68 assertEquals(expected.getLongVersionCode(), actual.getLongVersionCode()); 69 assertEquals(expected.versionName, actual.versionName); 70 assertEquals(expected.sharedUserId, actual.sharedUserId); 71 assertEquals(expected.sharedUserLabel, actual.sharedUserLabel); 73 assertNotNull(actual.applicationInfo); 74 checkAppInfo(expected.applicationInfo, actual.applicationInfo); 76 assertNull(actual.applicationInfo); 78 assertTrue(Arrays.equals(expected.gids, actual.gids)) [all...] |
/art/test/631-checker-get-class/src/ |
Main.java | 99 int actual = bar(new Main()); local 100 if (actual != 42) { 101 throw new Error("Expected 42, got " + actual); 103 actual = bar(new SubMain()); 104 if (actual != 4) { 105 throw new Error("Expected 4, got " + actual);
|
/external/mockito/src/main/java/org/mockito/internal/reporting/ |
SmartPrinter.java | 12 * Makes sure both wanted and actual are printed consistently (single line or multiline) 19 private final String actual; field in class:SmartPrinter 21 public SmartPrinter(MatchableInvocation wanted, Invocation actual, Integer ... indexesOfMatchersToBeDescribedWithExtraTypeInfo) { 23 printSettings.setMultiline(wanted.toString().contains("\n") || actual.toString().contains("\n")); 27 this.actual = printSettings.print(actual); 35 return actual;
|
/external/guava/guava-testlib/src/com/google/common/collect/testing/testers/ |
ListToArrayTester.java | 38 Object[] actual = getList().toArray(); local 40 createOrderedArray(), actual); 45 Object[] actual = getList().toArray(new Object[0]); local 47 createOrderedArray(), actual); 51 Object[] actual = getList().toArray(new Object[getNumElements()]); local 53 createOrderedArray(), actual); 57 Object[] actual) { 58 assertEquals(message, Arrays.asList(expected), Arrays.asList(actual));
|
/external/junit/src/main/java/org/junit/internal/ |
ExactComparisonCriteria.java | 7 protected void assertElementsEqual(Object expected, Object actual) { 8 Assert.assertEquals(expected, actual);
|
/external/objenesis/main/src/test/java/org/objenesis/instantiator/basic/ |
ClassDefinitionUtilsTest.java | 38 String actual = ClassDefinitionUtils.classNameToInternalClassName(className); local 39 assertEquals("org/objenesis/EmptyClass", actual); 44 String actual = ClassDefinitionUtils.classNameToResource(className); local 45 assertEquals("org/objenesis/EmptyClass.class", actual); 50 Class<?> actual = ClassDefinitionUtils.getExistingClass(getClass().getClassLoader(), local 52 assertSame(actual, getClass()); 57 Class<?> actual = ClassDefinitionUtils.getExistingClass(getClass().getClassLoader(), getClass().getName() + "$$$1"); local 58 assertNull(actual);
|
/external/tensorflow/tensorflow/compiler/xla/tests/ |
literal_test_util.h | 49 const Shape& expected, const Shape& actual) TF_MUST_USE_RESULT; 54 const Shape& expected, const Shape& actual) TF_MUST_USE_RESULT; 57 const LiteralSlice& actual) 62 static void ExpectR0Equal(NativeT expected, const LiteralSlice& actual); 66 const LiteralSlice& actual); 70 const LiteralSlice& actual); 77 const LiteralSlice& actual); 82 const LiteralSlice& actual); 85 const LiteralSlice& actual); 88 const LiteralSlice& actual); [all...] |