/frameworks/support/documents-archive/src/android/support/provider/ |
Preconditions.java | 42 static void checkArgumentEquals(String expected, @Nullable String actual, String message) { 43 if (!TextUtils.equals(expected, actual)) { 44 throw new IllegalArgumentException(String.format(message, String.valueOf(expected),
|
/libcore/luni/src/test/java/libcore/java/io/ |
DataOutputStreamTest.java | 98 byte[] expected = new byte[2 + 65535]; 99 expected[0] = (byte) 0xff; 100 expected[1] = (byte) 0xff; 102 expected[2] = (byte) 0xd9; 103 expected[3] = (byte) 0xa6; 105 expected[4] = (byte) 0xe2; 106 expected[5] = (byte) 0x98; 107 expected[6] = (byte) 0x83; 108 Arrays.fill(expected, 7, expected.length, (byte) 'a') [all...] |
/libcore/luni/src/test/java/libcore/java/util/ |
OldLinkedHashMapTest.java | 45 fail("expected ConcurrentModificationException was not thrown."); 46 } catch(ConcurrentModificationException expected) { 58 fail("IllegalArgumentException expected"); 59 } catch (IllegalArgumentException expected) { 64 fail("IllegalArgumentException expected"); 65 } catch (IllegalArgumentException expected) {
|
/libcore/luni/src/test/java/tests/security/cert/ |
CertificateRevocationExceptionTest.java | 109 } catch (UnsupportedOperationException expected) { 159 CertificateRevokedException expected = (CertificateRevokedException) initial; 162 assertEquals(expected.getInvalidityDate(), actual.getInvalidityDate()); 163 assertNotSame(expected.getInvalidityDate(), actual.getInvalidityDate()); 164 assertEquals(expected.getRevocationDate(), actual.getRevocationDate()); 165 assertNotSame(expected.getRevocationDate(), actual.getRevocationDate()); 166 assertEquals(expected.getRevocationReason(), expected.getRevocationReason()); 167 assertEquals(expected.getAuthorityName(), actual.getAuthorityName()); 168 assertNotSame(expected.getAuthorityName(), actual.getAuthorityName()) [all...] |
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/internal/ |
MoreKeySpecSplitTests.java | 45 static <T> void assertArrayEquals(final String message, final T[] expected, final T[] actual) { 46 if (expected == actual) { 49 if (expected == null || actual == null) { 50 assertEquals(message, Arrays.toString(expected), Arrays.toString(actual)); 53 if (expected.length != actual.length) { 54 assertEquals(message + " [length]", Arrays.toString(expected), Arrays.toString(actual)); 57 for (int i = 0; i < expected.length; i++) { 58 final T e = expected[i]; 71 final String[] expected = (expectedArray.length == 0) ? null : expectedArray; local 72 assertArrayEquals(message, expected, actual) [all...] |
/prebuilts/go/darwin-x86/src/net/ |
dnsclient_test.go | 30 expected := float64(count) * float64(data[0].Weight) / float64(sum) 31 diff := float64(actual) - expected 32 t.Logf("actual: %v diff: %v e: %v m: %v", actual, diff, expected, margin) 36 if diff > (expected * margin) { 37 t.Errorf("missed target weight: expected %v, %v", expected, actual)
|
/prebuilts/go/linux-x86/src/net/ |
dnsclient_test.go | 30 expected := float64(count) * float64(data[0].Weight) / float64(sum) 31 diff := float64(actual) - expected 32 t.Logf("actual: %v diff: %v e: %v m: %v", actual, diff, expected, margin) 36 if diff > (expected * margin) { 37 t.Errorf("missed target weight: expected %v, %v", expected, actual)
|
/system/connectivity/shill/bin/ |
test_set_wifi_regulatory | 25 local expected="$2" 27 if [ "${actual}" != "${expected}" ]; then 28 echo "FAIL: expected |${expected}|, got |${actual}|"
|
/art/test/416-optimizing-arith-not/src/ |
Main.java | 21 public static void expectEquals(int expected, int result) { 22 if (expected != result) { 23 throw new Error("Expected: " + expected + ", found: " + result); 27 public static void expectEquals(long expected, long result) { 28 if (expected != result) { 29 throw new Error("Expected: " + expected + ", found: " + result);
|
/art/test/550-checker-multiply-accumulate/src/ |
Main.java | 22 public static void assertIntEquals(int expected, int result) { 23 if (expected != result) { 24 throw new Error("Expected: " + expected + ", found: " + result); 28 public static void assertLongEquals(long expected, long result) { 29 if (expected != result) { 30 throw new Error("Expected: " + expected + ", found: " + result);
|
/art/test/565-checker-doublenegbitwise/src/ |
Main.java | 22 public static void assertIntEquals(int expected, int result) { 23 if (expected != result) { 24 throw new Error("Expected: " + expected + ", found: " + result); 28 public static void assertLongEquals(long expected, long result) { 29 if (expected != result) { 30 throw new Error("Expected: " + expected + ", found: " + result);
|
/external/guava/guava-testlib/src/com/google/common/collect/testing/google/ |
MultimapValuesTester.java | 40 List<V> expected = Lists.newArrayList(); local 42 expected.add(entry.getValue()); 44 assertThat(multimap().values()).has().exactlyAs(expected); 49 List<V> expected = Lists.newArrayList(); local 51 expected.add(entry.getValue()); 53 assertThat(multimap().values()).has().exactlyAs(expected).inOrder();
|
/external/guava/guava-testlib/src/com/google/common/escape/testing/ |
EscaperAsserts.java | 61 * Asserts that an escaper escapes the given character into the expected 65 * @param expected the expected output string 68 public static void assertEscaping(CharEscaper escaper, String expected, 73 Assert.assertEquals(expected, escaped); 88 * expected string. 91 * @param expected the expected output string 94 public static void assertEscaping(UnicodeEscaper escaper, String expected, 99 Assert.assertEquals(expected, escaped) [all...] |
/external/guava/guava-tests/test/com/google/common/collect/ |
MapsTransformValuesTest.java | 82 private void assertMapsEqual(Map<?, ?> expected, Map<?, ?> map) { 83 assertEquals(expected, map); 84 assertEquals(expected.hashCode(), map.hashCode()); 85 assertEquals(expected.entrySet(), map.entrySet()); 89 Collection<?> expectedValues = expected.values(); 105 Map<String, String> expected = ImmutableMap.of("a", "1"); local 106 assertMapsEqual(expected, map); 107 assertEquals(expected.get("a"), map.get("a")); 123 } catch (UnsupportedOperationException expected) { 129 } catch (UnsupportedOperationException expected) { 161 Map<String, Boolean> expected = ImmutableMap.of("a", true, "b", false); local 244 Map<String, Integer> expected local [all...] |
/external/mockftpserver/MockFtpServer/src/test/java/org/mockftpserver/stub/command/ |
AlloCommandHandlerTest.java | 76 fail("Expected AssertFailedException");
78 catch (AssertFailedException expected) {
79 LOG.info("Expected: " + expected);
90 fail("Expected NumberFormatException");
92 catch (NumberFormatException expected) {
93 LOG.info("Expected: " + expected);
103 fail("Expected NumberFormatException");
105 catch (NumberFormatException expected) {
[all...] |
/external/selinux/policycoreutils/mcstrans/share/util/ |
mlscolor-test | 20 context, expected = line.split("=") 32 if colors != expected: 33 print "For '%s' got\n\t'%s' expected\n\t'%s'" % (context, colors, expected)
|
/external/sqlite/android/ |
PhoneNumberUtilsTest.cpp | 34 #define EXPECT(function, input1, input2, expected, total, error) \ 39 if ((expected) != (function)((i1_cache), (i2_cache))) { \ 40 if (expected) { \ 60 #define ASSERT_STRIPPED_REVERSE(input, expected) \ 70 if (strcmp((expected), (out)) != 0) { \ 71 printf("Expected: %s actual: %s\n", (expected), (out)); \
|
/external/v8/test/mjsunit/regress/ |
regress-3229.js | 6 function testEscapes(expected, regexp) { 7 assertEquals(expected, regexp.source); 8 assertEquals("/" + expected + "/", regexp.toString());
|
regress-crbug-487289.js | 17 var expected = {}; variable 18 f.call(expected); 20 assertEquals(expected, receiver);
|
regress-crbug-491943.js | 22 var expected = {}; variable 23 f.call(expected); 25 assertEquals(expected, receiver);
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ |
ServerSocketFactoryTest.java | 54 } catch (IOException expected) { 62 } catch (IllegalArgumentException expected) { 74 } catch (IOException expected) { 82 } catch (IllegalArgumentException expected) { 95 } catch (IOException expected) { 103 } catch (IllegalArgumentException expected) {
|
/libcore/luni/src/test/etc/loading-test-jar/ |
TestMethods.java | 46 public static void assertSame(Object expected, Object actual) { 47 if (expected != actual) { 49 "EXPECTED: " + expected + "; ACTUAL: " + actual); 56 public static void assertSame(int expected, int actual) { 57 if (expected != actual) { 59 "EXPECTED: " + expected + "; ACTUAL: " + actual);
|
/libcore/luni/src/test/java/libcore/java/util/zip/ |
OldAndroidChecksumTest.java | 40 private void adler32Test(byte[] values, long expected) { 45 assertEquals(adler.getValue(), expected); local 52 assertEquals(adler.getValue(), expected); local 55 private void cRC32Test(byte[] values, long expected) { 60 assertEquals(crc.getValue(), expected); local 67 assertEquals(crc.getValue(), expected); local 91 assertEquals("Checksums not equal: expected: " + arrayChecksum +
|
/prebuilts/gdb/darwin-x86/lib/python2.7/test/ |
test_fpformat.py | 27 expected = "%.*f" % (digits, float(n)) 29 self.assertEqual(result, expected) 35 expected = "%.*e" % (digits, float(n)) 37 num, exp = expected.split("e") 40 expected = "%se%s" % (num, exp) 42 self.assertEqual(result, expected)
|
/prebuilts/gdb/linux-x86/lib/python2.7/test/ |
test_fpformat.py | 27 expected = "%.*f" % (digits, float(n)) 29 self.assertEqual(result, expected) 35 expected = "%.*e" % (digits, float(n)) 37 num, exp = expected.split("e") 40 expected = "%se%s" % (num, exp) 42 self.assertEqual(result, expected)
|