/external/v8/test/promises-aplus/lib/ |
assert.js | 34 function fail(actual, expected, message, operator) { 36 ': (' + actual + ' ' + operator + ' ' + expected + ') should hold'); 47 function equal(actual, expected, message) { 48 if (!(expected == actual)) { 49 fail(actual, expected, message, '=='); 53 function notEqual(actual, expected, message) { 54 if (!(expected != actual)) { 55 fail(actual, expected, message, '!='); 59 function strictEqual(actual, expected, message) { 60 if (!(expected === actual)) { [all...] |
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/ |
VCardBuilderTest.java | 44 final String actual = builder.toString(); local 52 assertTrue("Actual value:\n" + actual + " expected to contain\n" + expectedName + 53 "\nbut does not.", actual.contains(expectedName)); 54 assertTrue("Actual value:\n" + actual + " expected to contain\n" + expectedFullName + 55 "\nbut does not.", actual.contains(expectedFullName));
|
/external/easymock/src/org/easymock/ |
AbstractMatcher.java | 38 * Checks whether an expected argument matches an actual argument; the method
45 * @param actual
46 * the actual argument.
49 protected boolean argumentMatches(Object expected, Object actual) {
50 return expected.equals(actual);
68 * Checks whether an expected argument array matches an actual argument array.
78 * @param actual
79 * the actual arguments.
82 public boolean matches(Object[] expected, Object[] actual) {
83 if (expected == actual) {
[all...] |
/external/embunit/inc/ |
AssertImpl.h | 44 void assertImplementationInt(int expected,int actual, long line, const char *file); 45 void assertImplementationCStr(const char *expected,const char *actual, long line, const char *file); 47 #define TEST_ASSERT_EQUAL_STRING(expected,actual)\ 48 if (expected && actual && (stdimpl_strcmp(expected,actual)==0)) {} else {assertImplementationCStr(expected,actual,__LINE__,__FILE__);return;} 50 #define TEST_ASSERT_EQUAL_INT(expected,actual)\ 51 if (expected == actual) {} else {assertImplementationInt(expected,actual,__LINE__,__FILE__);return;}
|
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/unittest/ |
util.py | 21 def sorted_list_difference(expected, actual): 25 elements in the "expected" list but not in the "actual" list, and the 26 second contains those elements in the "actual" list but not in the 35 a = actual[j] 44 while actual[j] == a: 53 while actual[j] == a: 57 unexpected.extend(actual[j:]) 62 def unorderable_list_difference(expected, actual, ignore_duplicate=False): 74 actual.remove(item) 78 for lst in expected, actual [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/unittest/ |
util.py | 21 def sorted_list_difference(expected, actual): 25 elements in the "expected" list but not in the "actual" list, and the 26 second contains those elements in the "actual" list but not in the 35 a = actual[j] 44 while actual[j] == a: 53 while actual[j] == a: 57 unexpected.extend(actual[j:]) 62 def unorderable_list_difference(expected, actual, ignore_duplicate=False): 74 actual.remove(item) 78 for lst in expected, actual [all...] |
/external/chromium-trace/trace-viewer/tracing/third_party/vinn/third_party/parse5/test/fixtures/ |
jsdom_parser_test.js | 49 var actual = serializer.serialize(document1); 52 assert.ok(actual === docHtml1, TestUtils.getStringDiffMsg(actual, docHtml1)); 61 var actual = serializer.serialize(JsDomParser.parseInnerHtml(fragment)); 62 assert.ok(actual === fragment, TestUtils.getStringDiffMsg(actual, fragment)); 69 var actual = serializer.serialize(document2); 71 assert.ok(actual === docHtml2, TestUtils.getStringDiffMsg(actual, docHtml2)); 129 var actual = TestUtils.serializeToTestDataFormat(result, treeAdapter) [all...] |
/external/llvm/test/Transforms/GlobalOpt/ |
storepointer-compare.ll | 2 ; RUN: grep "call void @Actual" 9 define internal void @Actual() { 14 store void ()* @Actual, void ()** @G
|
/external/mockito/src/org/mockito/internal/matchers/ |
Find.java | 23 public boolean matches(Object actual) { 24 return actual != null && Pattern.compile(regex).matcher((String) actual).find();
|
Not.java | 24 public boolean matches(Object actual) { 25 return !first.matches(actual);
|
NotNull.java | 23 public boolean matches(Object actual) { 24 return actual != null;
|
Null.java | 22 public boolean matches(Object actual) { 23 return actual == null;
|
/external/robolectric/src/main/java/com/xtremelabs/robolectric/matchers/ |
TextViewHasTextMatcher.java | 18 public boolean matchesSafely(T actual) { 19 if (actual == null) { 22 final CharSequence charSequence = actual.getText();
|
/external/valgrind/memcheck/tests/ |
wrap7.c | 10 extern void actual ( void ); 14 void I_WRAP_SONAME_FNNAME_ZU(wrap7soZdso,actual) ( void ) 28 actual();
|
/cts/tests/tests/content/src/android/content/pm/cts/ |
PermissionInfoTest.java | 54 private void checkInfoSame(PermissionInfo expected, PermissionInfo actual) { 55 assertEquals(expected.name, actual.name); 56 assertEquals(expected.group, actual.group); 57 assertEquals(expected.descriptionRes, actual.descriptionRes); 58 assertEquals(expected.protectionLevel, actual.protectionLevel); 59 assertEquals(expected.nonLocalizedDescription, actual.nonLocalizedDescription);
|
/cts/tests/tests/text/src/android/text/method/cts/ |
TextMethodUtils.java | 28 * @param actual the actual char array. 30 public static void assertEquals(char[] expected, char[] actual) { 31 if (expected != actual) { 32 if (expected == null || actual == null) { 36 Assert.assertEquals(String.valueOf(expected), String.valueOf(actual));
|
/external/freetype/src/gzip/ |
inftrees.h | 34 exhaustive search). The actual maximum is not known, but the 40 uIntf *, /* bits tree desired/actual depth */ 49 uIntf *, /* literal desired/actual bit depth */ 50 uIntf *, /* distance desired/actual bit depth */ 57 uIntf *, /* literal desired/actual bit depth */ 58 uIntf *, /* distance desired/actual bit depth */
|
/frameworks/av/media/libnbaio/ |
LibsndfileSource.cpp | 54 sf_count_t actual = sf_readf_short(mSndfile, (short *) buffer, (sf_count_t) count); local 56 if (actual == 0) { 69 mFramesRead += actual; 70 if (actual >= mEstimatedFramesUntilEOF) { 73 mEstimatedFramesUntilEOF -= actual; 77 return actual;
|
/external/chromium-trace/trace-viewer/third_party/Paste/tests/ |
test_gzipper.py | 18 actual = gzip.GzipFile(fileobj=six.BytesIO(res.body)).read() 19 assert actual == b'this is a test'
|
/external/junit/src/org/junit/internal/ |
ComparisonCriteria.java | 26 * actual values 39 Object actual= Array.get(actuals, i); local 41 if (isArray(expected) && isArray(actual)) { 43 arrayEquals(message, expected, actual); 50 assertElementsEqual(expected, actual); 66 Assert.fail(header + "actual array was null"); 71 + expectedsLength + " actual.length=" + actualsLength); 75 protected abstract void assertElementsEqual(Object expected, Object actual);
|
/external/mockito/src/org/mockito/internal/matchers/apachecommons/ |
ReflectionEquals.java | 23 public boolean matches(Object actual) { 24 return EqualsBuilder.reflectionEquals(wanted, actual, excludeFields);
|
/libcore/json/src/main/java/org/json/ |
JSON.java | 95 public static JSONException typeMismatch(Object indexOrName, Object actual, 97 if (actual == null) { 100 throw new JSONException("Value " + actual + " at " + indexOrName 101 + " of type " + actual.getClass().getName() 106 public static JSONException typeMismatch(Object actual, String requiredType) 108 if (actual == null) { 111 throw new JSONException("Value " + actual 112 + " of type " + actual.getClass().getName()
|
/external/antlr/antlr-3.4/gunit/src/main/java/org/antlr/gunit/ |
AbstractTest.java | 33 protected String actual; field in class:AbstractTest 54 public String getActual() { return this.actual; } 55 // return an escaped string of the actual result 57 String actual = getActual(); local 59 if ( actual!=null && !hasErrorMsg ) actual = JUnitCodeGen.escapeForJava(actual); 60 return actual; 78 public void setActual(String actual) { this.actual = actual; [all...] |
/cts/tools/vm-tests-tf/src/dot/junit/ |
DxAbstractMain.java | 111 static public void assertEquals(int expected, int actual) { 112 if (expected != actual) throw new RuntimeException("AssertionFailedError: not equals. Expected " + expected + " actual " + actual); 115 static public void assertEquals(String message, int expected, int actual) { 116 if (expected != actual) throw new RuntimeException("AssertionFailedError: not equals: " + message + " Expected " + expected + " actual " + actual); 119 static public void assertEquals(long expected, long actual) { 120 if (expected != actual) throw new RuntimeException("AssertionFailedError: not equals. Expected " + expected + " actual " (…) [all...] |
/external/google-breakpad/src/testing/test/ |
gmock_output_test_golden.txt | 40 Actual: 1 42 Actual: never called - unsatisfied and active 53 Actual: 1 55 Actual: never called - unsatisfied and active 63 Actual: called twice - over-saturated and active 70 Actual: called twice - over-saturated and active 97 Actual: it is retired 99 Actual: called once - saturated and retired 102 Actual: 1 104 Actual: [all...] |