Home
last modified time | relevance | path

Searched refs:actual (Results 1 – 25 of 1466) sorted by relevance

12345678910>>...59

/external/libbrillo/brillo/
Dvalue_conversion_unittest.cc45 #define EXPECT_JSON_EQ(expected, actual) \ argument
46 EXPECT_PRED2(IsEqualValue, *ParseValue(expected), actual)
51 int actual; in TEST() local
52 EXPECT_TRUE(FromValue(*ParseValue("123"), &actual)); in TEST()
53 EXPECT_EQ(123, actual); in TEST()
55 EXPECT_TRUE(FromValue(*ParseValue("-123"), &actual)); in TEST()
56 EXPECT_EQ(-123, actual); in TEST()
58 EXPECT_FALSE(FromValue(*ParseValue("true"), &actual)); in TEST()
62 bool actual; in TEST() local
63 EXPECT_TRUE(FromValue(*ParseValue("false"), &actual)); in TEST()
[all …]
/external/testng/src/main/java/org/testng/asserts/
DAssertion.java70 private final T actual; field in Assertion.SimpleAssert
78 public SimpleAssert(T actual, T expected) { in SimpleAssert() argument
79 this(actual, expected, null); in SimpleAssert()
82 public SimpleAssert(T actual, T expected, String message) { in SimpleAssert() argument
83 this.actual = actual; in SimpleAssert()
95 return actual; in getActual()
171 public <T> void assertEquals(final T actual, final T expected, final String message) { in assertEquals() argument
172 doAssert(new SimpleAssert<T>(actual, expected, message) { in assertEquals()
175 org.testng.Assert.assertEquals(actual, expected, message); in assertEquals()
180 public <T> void assertEquals(final T actual, final T expected) { in assertEquals() argument
[all …]
/external/vogar/src/junit/framework/
DAssert.java25 public static void assertEquals(String message, boolean expected, boolean actual) { in assertEquals() argument
26 if (actual != expected) { in assertEquals()
27 fail(message, "expected " + expected + " but was " + actual); in assertEquals()
31 public static void assertEquals(boolean expected, boolean actual) { in assertEquals() argument
32 assertEquals("", expected, actual); in assertEquals()
35 public static void assertEquals(String message, byte expected, byte actual) { in assertEquals() argument
36 if (actual != expected) { in assertEquals()
37 fail(message, "expected " + expected + " but was " + actual); in assertEquals()
41 public static void assertEquals(byte expected, byte actual) { in assertEquals() argument
42 assertEquals("", expected, actual); in assertEquals()
[all …]
/external/testng/src/main/java/org/testng/
DAssertJUnit.java73 static public void assertEquals(String message, Object expected, Object actual) { in assertEquals() argument
74 if((expected == null) && (actual == null)) { in assertEquals()
77 if((expected != null) && expected.equals(actual)) { in assertEquals()
80 failNotEquals(message, expected, actual); in assertEquals()
87 static public void assertEquals(Object expected, Object actual) { in assertEquals() argument
88 assertEquals(null, expected, actual); in assertEquals()
94 static public void assertEquals(String message, String expected, String actual) { in assertEquals() argument
95 if((expected == null) && (actual == null)) { in assertEquals()
98 if((expected != null) && expected.equals(actual)) { in assertEquals()
101 throw new AssertionError(format(message, expected, actual)); in assertEquals()
[all …]
DAssert.java111 static public void assertEquals(Object actual, Object expected, String message) { in assertEquals() argument
113 assertArrayEquals(actual, expected, message); in assertEquals()
116 assertEqualsImpl(actual, expected, message); in assertEquals()
124 private static void assertEqualsImpl(Object actual, Object expected, in assertEqualsImpl() argument
126 if((expected == null) && (actual == null)) { in assertEqualsImpl()
129 if(expected == null ^ actual == null) { in assertEqualsImpl()
130 failNotEquals(actual, expected, message); in assertEqualsImpl()
132 if (expected.equals(actual) && actual.equals(expected)) { in assertEqualsImpl()
135 failNotEquals(actual, expected, message); in assertEqualsImpl()
138 private static void assertArrayEquals(Object actual, Object expected, String message) { in assertArrayEquals() argument
[all …]
/external/junit/src/junit/framework/
DAssert.java62 static public void assertEquals(String message, Object expected, Object actual) { in assertEquals() argument
63 if (expected == null && actual == null) in assertEquals()
65 if (expected != null && expected.equals(actual)) in assertEquals()
67 failNotEquals(message, expected, actual); in assertEquals()
73 static public void assertEquals(Object expected, Object actual) { in assertEquals() argument
74 assertEquals(null, expected, actual); in assertEquals()
79 static public void assertEquals(String message, String expected, String actual) { in assertEquals() argument
80 if (expected == null && actual == null) in assertEquals()
82 if (expected != null && expected.equals(actual)) in assertEquals()
85 throw new ComparisonFailure(cleanMessage, expected, actual); in assertEquals()
[all …]
/external/easymock/src/org/easymock/internal/matchers/
DArrayEquals.java31 public boolean matches(Object actual) { in matches() argument
34 && (actual == null || actual instanceof boolean[])) { in matches()
35 return Arrays.equals((boolean[]) expected, (boolean[]) actual); in matches()
37 && (actual == null || actual instanceof byte[])) { in matches()
38 return Arrays.equals((byte[]) expected, (byte[]) actual); in matches()
40 && (actual == null || actual instanceof char[])) { in matches()
41 return Arrays.equals((char[]) expected, (char[]) actual); in matches()
43 && (actual == null || actual instanceof double[])) { in matches()
44 return Arrays.equals((double[]) expected, (double[]) actual); in matches()
46 && (actual == null || actual instanceof float[])) { in matches()
[all …]
/external/junit/src/org/junit/
DAssert.java118 Object actual) { in assertEquals() argument
119 if (expected == null && actual == null) in assertEquals()
121 if (expected != null && isEquals(expected, actual)) in assertEquals()
123 else if (expected instanceof String && actual instanceof String) { in assertEquals()
126 (String) actual); in assertEquals()
128 failNotEquals(message, expected, actual); in assertEquals()
131 private static boolean isEquals(Object expected, Object actual) { in isEquals() argument
132 return expected.equals(actual); in isEquals()
146 static public void assertEquals(Object expected, Object actual) { in assertEquals() argument
147 assertEquals(null, expected, actual); in assertEquals()
[all …]
/external/mockito/src/org/mockito/internal/matchers/
DArrayEquals.java21 public boolean matches(Object actual) { in matches() argument
23 if (wanted == null || actual == null) { in matches()
24 return super.matches(actual); in matches()
25 } else if (wanted instanceof boolean[] && actual instanceof boolean[]) { in matches()
26 return Arrays.equals((boolean[]) wanted, (boolean[]) actual); in matches()
27 } else if (wanted instanceof byte[] && actual instanceof byte[]) { in matches()
28 return Arrays.equals((byte[]) wanted, (byte[]) actual); in matches()
29 } else if (wanted instanceof char[] && actual instanceof char[]) { in matches()
30 return Arrays.equals((char[]) wanted, (char[]) actual); in matches()
31 } else if (wanted instanceof double[] && actual instanceof double[]) { in matches()
[all …]
/external/icu/icu4c/source/test/intltest/
Dcompactdecimalformattest.cpp290 UnicodeString actual; in TestSignificantDigits() local
291 cdf->format(123456.0, actual); in TestSignificantDigits()
294 if (actual != expected) { in TestSignificantDigits()
295 errln(UnicodeString("Fail: Expected: ") + expected + UnicodeString(" Got: ") + actual); in TestSignificantDigits()
306 UnicodeString actual; in TestAPIVariants() local
312 actual.remove(); in TestAPIVariants()
315 cdf->format((double)123456.0, actual, pos); in TestAPIVariants()
316 if (actual != expected || pos.getEndIndex() != 3) { in TestAPIVariants()
318 … "Got: \"" + actual + "\", pos " + pos.getEndIndex()); in TestAPIVariants()
321 actual.remove(); in TestAPIVariants()
[all …]
/external/testng/src/test/java/org/testng/
DAssertTest.java20 Object[] actual= null; in nullObjectArrayAssertEquals() local
21 Assert.assertEquals(actual, expected); in nullObjectArrayAssertEquals()
27 Object[] actual= null; in nullObjectArrayAssertNoOrder() local
28 Assert.assertEqualsNoOrder(actual, expected); in nullObjectArrayAssertNoOrder()
34 Collection actual = null; in nullCollectionAssertEquals() local
35 Assert.assertEquals(actual, expected); in nullCollectionAssertEquals()
41 Set actual = null; in nullSetAssertEquals() local
42 Assert.assertEquals(actual, expected); in nullSetAssertEquals()
48 Map actual = null; in nullMapAssertEquals() local
49 Assert.assertEquals(actual, expected); in nullMapAssertEquals()
[all …]
/external/opencv3/modules/java/android_test/src/org/opencv/test/
DOpenCVTestCase.java296 public static void assertRectEquals(Rect expected, Rect actual) { in assertRectEquals() argument
297 String msg = "expected:<" + expected + "> but was:<" + actual + ">"; in assertRectEquals()
298 assertEquals(msg, expected.x, actual.x); in assertRectEquals()
299 assertEquals(msg, expected.y, actual.y); in assertRectEquals()
300 assertEquals(msg, expected.width, actual.width); in assertRectEquals()
301 assertEquals(msg, expected.height, actual.height); in assertRectEquals()
312 public static void assertMatEqual(Mat expected, Mat actual, double eps) { in assertMatEqual() argument
313 compareMats(expected, actual, eps, true); in assertMatEqual()
316 public static void assertMatNotEqual(Mat expected, Mat actual, double eps) { in assertMatNotEqual() argument
317 compareMats(expected, actual, eps, false); in assertMatNotEqual()
[all …]
/external/opencv3/modules/java/pure_test/src/org/opencv/test/
DOpenCVTestCase.java326 public static void assertRectEquals(Rect expected, Rect actual) { in assertRectEquals() argument
327 String msg = "expected:<" + expected + "> but was:<" + actual + ">"; in assertRectEquals()
328 assertEquals(msg, expected.x, actual.x); in assertRectEquals()
329 assertEquals(msg, expected.y, actual.y); in assertRectEquals()
330 assertEquals(msg, expected.width, actual.width); in assertRectEquals()
331 assertEquals(msg, expected.height, actual.height); in assertRectEquals()
342 public static void assertMatEqual(Mat expected, Mat actual, double eps) { in assertMatEqual() argument
343 compareMats(expected, actual, eps, true); in assertMatEqual()
346 public static void assertMatNotEqual(Mat expected, Mat actual, double eps) { in assertMatNotEqual() argument
347 compareMats(expected, actual, eps, false); in assertMatNotEqual()
[all …]
/external/chromium-trace/catapult/third_party/vinn/third_party/parse5/test/fixtures/
Dsimple_api_parser_test.js21 var actual = '',
24 actual += '<!DOCTYPE ' + name;
27 actual += ' PUBLIC "' + publicId + '"';
30 actual += ' SYSTEM';
33 actual += ' "' + systemId + '"';
36 actual += '>';
40 actual += '<' + tagName;
44 actual += ' ' + attrs[i].name + '="' + attrs[i].value + '"';
47 actual += selfClosing ? '/>' : '>';
51 actual += '</' + tagName + '>';
[all …]
/external/v8/test/promises-aplus/lib/
Dassert.js34 function fail(actual, expected, message, operator) { argument
36 ': (' + actual + ' ' + operator + ' ' + expected + ') should hold');
47 function equal(actual, expected, message) { argument
48 if (!(expected == actual)) {
49 fail(actual, expected, message, '==');
53 function notEqual(actual, expected, message) { argument
54 if (!(expected != actual)) {
55 fail(actual, expected, message, '!=');
59 function strictEqual(actual, expected, message) { argument
60 if (!(expected === actual)) {
[all …]
/external/e2fsprogs/lib/ext2fs/
Dimager.c66 ssize_t actual; in ext2fs_image_inode_write() local
113 actual = write(fd, cp, fs->blocksize * d); in ext2fs_image_inode_write()
114 if (actual == -1) { in ext2fs_image_inode_write()
118 if (actual != (ssize_t) (fs->blocksize * d)) { in ext2fs_image_inode_write()
145 ssize_t actual; in ext2fs_image_inode_read() local
163 actual = read(fd, buf, fs->blocksize * c); in ext2fs_image_inode_read()
164 if (actual == -1) { in ext2fs_image_inode_read()
168 if (actual != (ssize_t) (fs->blocksize * c)) { in ext2fs_image_inode_read()
194 ssize_t actual; in ext2fs_image_super_write() local
206 actual = write(fd, buf, fs->blocksize); in ext2fs_image_super_write()
[all …]
/external/chromium-trace/catapult/third_party/gsutil/gslib/tests/
Dtest_naming.py95 actual = list(self._test_wildcard_iterator(
97 self.assertEqual(1, len(actual))
98 self.assertEqual('f0', actual[0].root_object.name)
107 actual = set(str(u) for u in self._test_wildcard_iterator(
113 self.assertEqual(expected, actual)
130 actual = set(str(u) for u in self._test_wildcard_iterator(
136 self.assertEqual(expected, actual)
145 actual = set(str(u) for u in self._test_wildcard_iterator(
153 self.assertEqual(expected, actual)
161 actual = set(str(u) for u in self._test_wildcard_iterator(
[all …]
/external/autotest/server/cros/ap_configurators/
Dap_configurator_factory_unittest.py157 actual = self.factory.get_ap_configurators_by_spec(spec=spec)
158 self.assertEquals([self.mock_ap1, self.mock_ap2].sort(), actual.sort())
161 actual = self.factory.get_ap_configurators_by_spec(spec=spec)
162 self.assertEquals([self.mock_ap2], actual)
170 actual = self.factory.get_ap_configurators_by_spec(spec=spec)
171 self.assertEquals([self.mock_ap1, self.mock_ap2].sort(), actual.sort())
174 actual = self.factory.get_ap_configurators_by_spec(spec=spec)
175 self.assertEquals([self.mock_ap2], actual)
182 actual = self.factory.get_ap_configurators_by_spec(spec=spec)
183 self.assertEquals([self.mock_ap1], actual)
[all …]
/external/webrtc/webrtc/modules/audio_processing/beamformer/
Dmatrix_test_helpers.h31 const Matrix<T>& actual) { in ValidateMatrixEquality() argument
32 EXPECT_EQ(expected.num_rows(), actual.num_rows()); in ValidateMatrixEquality()
33 EXPECT_EQ(expected.num_columns(), actual.num_columns()); in ValidateMatrixEquality()
36 const T* const* actual_elements = actual.elements(); in ValidateMatrixEquality()
45 const Matrix<float>& actual) { in ValidateMatrixEqualityFloat() argument
46 EXPECT_EQ(expected.num_rows(), actual.num_rows()); in ValidateMatrixEqualityFloat()
47 EXPECT_EQ(expected.num_columns(), actual.num_columns()); in ValidateMatrixEqualityFloat()
50 const float* const* actual_elements = actual.elements(); in ValidateMatrixEqualityFloat()
60 const Matrix<complex<float> >& actual) { in ValidateMatrixEqualityComplexFloat()
61 EXPECT_EQ(expected.num_rows(), actual.num_rows()); in ValidateMatrixEqualityComplexFloat()
[all …]
/external/guava/guava-tests/test/com/google/common/io/
DLittleEndianDataOutputStreamTest.java129 byte[] actual = new byte[12]; in testWriteChars()
130 in.readFully(actual); in testWriteChars()
131 assertEquals('r', actual[0]); in testWriteChars()
132 assertEquals(0, actual[1]); in testWriteChars()
133 assertEquals((byte) 0xC9, actual[2]); in testWriteChars() local
134 assertEquals(0, actual[3]); in testWriteChars()
135 assertEquals('s', actual[4]); in testWriteChars()
136 assertEquals(0, actual[5]); in testWriteChars()
137 assertEquals('u', actual[6]); in testWriteChars()
138 assertEquals(0, actual[7]); in testWriteChars()
[all …]
/external/chromium-trace/catapult/third_party/polymer/components/web-animations-js/test/blink/testharness/
Dtestharness.js297 function assert_true(actual, description) argument
299 assert(actual === true, "assert_true", description,
300 "expected true got ${actual}", {actual:actual}); property
304 function assert_false(actual, description) argument
306 assert(actual === false, "assert_false", description,
307 "expected false got ${actual}", {actual:actual}); property
323 function assert_equals(actual, expected, description) argument
329 if (typeof actual != typeof expected) {
331 … "expected (" + typeof expected + ") ${expected} but got (" + typeof actual + ") ${actual}",
332 {expected:expected, actual:actual}); property
[all …]
/external/autotest/client/site_tests/security_AccountsBaseline/
Dsecurity_AccountsBaseline.py17 def match_passwd(expected, actual): argument
20 if expected[1:4] != actual[1:4]:
23 tuple(expected[1:4]), expected[0], tuple(actual[1:4]))
29 def match_group(expected, actual): argument
33 if expected[1:3] != actual[1:3]:
37 tuple(expected[1:3]), expected[0], tuple(actual[1:3]))
38 if set(expected[3].split(',')) != set(actual[3].split(',')):
42 expected[3], expected[0], actual[3])
82 for actual in actual_entries:
83 expected = [x for x in expected_entries if x[0] == actual[0]]
[all …]
/external/libchrome/base/
Dmd5_unittest.cc27 std::string actual = MD5DigestToBase16(digest); in TEST() local
30 EXPECT_EQ(expected, actual); in TEST()
145 std::string actual = MD5String(""); in TEST() local
147 EXPECT_EQ(expected, actual); in TEST()
151 std::string actual = MD5String("a"); in TEST() local
153 EXPECT_EQ(expected, actual); in TEST()
157 std::string actual = MD5String("abc"); in TEST() local
159 EXPECT_EQ(expected, actual); in TEST()
163 std::string actual = MD5String("message digest"); in TEST() local
165 EXPECT_EQ(expected, actual); in TEST()
[all …]
/external/v8/test/mjsunit/
Dstring-index.js187 var actual = +(receiver[1]); variable
188 assertEquals(expected, actual);
197 var actual = str[key];
198 assertEquals(expected, actual);
208 var actual = str[key];
209 assertEquals(expected, actual);
219 var actual = str[key];
220 assertEquals(expected, actual);
230 var actual = str[key];
231 assertEquals(expected, actual);
[all …]
/external/antlr/antlr-3.4/gunit/src/main/java/org/antlr/gunit/
DAbstractTest.java33 protected String actual; field in AbstractTest
54 public String getActual() { return this.actual; } in getActual()
57 String actual = getActual(); in getActualResult() local
59 if ( actual!=null && !hasErrorMsg ) actual = JUnitCodeGen.escapeForJava(actual); in getActualResult()
60 return actual; in getActualResult()
78 public void setActual(String actual) { this.actual = actual; } in setActual() argument

12345678910>>...59