Home
last modified time | relevance | path

Searched refs:AssertionError (Results 1 – 25 of 266) sorted by relevance

1234567891011

/third_party/node/test/parallel/
Dtest-assert.js42 assert.ok(a.AssertionError.prototype instanceof Error,
45 assert.throws(() => a(false), a.AssertionError, 'ok(false)');
46 assert.throws(() => a.ok(false), a.AssertionError, 'ok(false)');
67 a.AssertionError, 'equal(true, false)');
77 a.AssertionError, 'notEqual(true, true)');
80 a.AssertionError, 'strictEqual(2, \'2\')');
84 a.AssertionError, 'strictEqual(null, undefined)');
119 assert.throws(() => thrower(a.AssertionError), a.AssertionError, 'message');
120 assert.throws(() => thrower(a.AssertionError), a.AssertionError);
121 assert.throws(() => thrower(a.AssertionError));
[all …]
Dtest-assert-deep.js6 const { AssertionError } = assert;
588 assertNotDeepOrStrict(err1, new Error('foo2'), assert.AssertionError);
589 assertNotDeepOrStrict(err1, new TypeError('foo1'), assert.AssertionError);
591 assertNotDeepOrStrict(err1, {}, AssertionError);
686 AssertionError,
691 AssertionError,
697 AssertionError,
723 AssertionError,
731 () => assert.deepEqual({ a: 4 }, { a: 4, b: true }), AssertionError);
741 AssertionError);
[all …]
Dtest-assert-typedarray-deepequal.js77 assert.AssertionError
85 assert.AssertionError
89 assert.AssertionError
Dtest-assert-checktag.js51 assert.AssertionError);
63 assert.AssertionError);
/third_party/node/doc/api/
Dassert.md66 // AssertionError: Expected inputs to be strictly deep-equal:
85 // AssertionError: Expected inputs to be strictly deep-equal:
128 // WARNING: This does not throw an AssertionError in legacy assertion mode!
132 ## Class: assert.AssertionError
137 module will be instances of the `AssertionError` class.
139 ### `new assert.AssertionError(options)` argument
171 // Generate an AssertionError to compare the error message later:
172 const { message } = new assert.AssertionError({
182 assert(err instanceof assert.AssertionError);
184 assert.strictEqual(err.name, 'AssertionError');
[all …]
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/format/
DMeasureUnitThreadTest.java45 AssertionError error;
61 } catch (AssertionError e) { in run()
89 AssertionError error = new AssertionError("Failure in thread 1"); in NumericRaceTest()
94 AssertionError error = new AssertionError("Failure in thread 2"); in NumericRaceTest()
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DMeasureUnitThreadTest.java42 AssertionError error;
58 } catch (AssertionError e) { in run()
86 AssertionError error = new AssertionError("Failure in thread 1"); in NumericRaceTest()
91 AssertionError error = new AssertionError("Failure in thread 2"); in NumericRaceTest()
/third_party/python/Lib/unittest/test/testmock/
Dtestasync.py229 with self.assertRaises(AssertionError):
753 with self.assertRaises(AssertionError):
755 with self.assertRaises(AssertionError):
764 with self.assertRaises(AssertionError):
775 with self.assertRaises(AssertionError):
778 with self.assertRaises(AssertionError):
792 with self.assertRaises(AssertionError):
810 with self.assertRaises(AssertionError):
812 with self.assertRaises(AssertionError):
818 with self.assertRaises(AssertionError):
[all …]
Dtestmock.py376 self.assertRaises(AssertionError, mock.assert_called_with, 1)
379 self.assertRaises(AssertionError, mock.assert_called_with)
399 self.assertRaises(AssertionError, mock.assert_called_with,
402 with self.assertRaises(AssertionError) as cm:
412 self.assertRaises(AssertionError, mock.assert_called_with,
429 with self.assertRaisesRegex(AssertionError, msg.format('mock')):
431 with self.assertRaisesRegex(AssertionError, msg.format('test_name')):
443 self.assertRaises(AssertionError, mock.assert_called_once_with)
446 self.assertRaises(AssertionError, mock.assert_called_once_with)
454 AssertionError,
[all …]
/third_party/PyYAML/tests/lib/
Dtest_errors.py12 raise AssertionError("expected an exception")
24 raise AssertionError("expected an exception")
36 raise AssertionError("expected an exception")
49 raise AssertionError("expected an exception")
64 raise AssertionError("expected an exception")
/third_party/python/Lib/
D_markupbase.py130 raise AssertionError("unsupported '[' char in %s declaration" % decltype)
132 raise AssertionError("unexpected '[' char in declaration")
134 raise AssertionError("unexpected %r char in declaration" % rawdata[j])
154 raise AssertionError(
168 raise AssertionError('unexpected call to parse_comment()')
192 raise AssertionError(
211 raise AssertionError(
237 raise AssertionError("unexpected char after internal subset")
244 raise AssertionError("unexpected char %r in internal subset" % c)
390 raise AssertionError(
/third_party/python/Doc/includes/
Dmp_pool.py88 raise AssertionError('expected ZeroDivisionError')
95 raise AssertionError('expected ZeroDivisionError')
102 raise AssertionError('expected ZeroDivisionError')
115 raise AssertionError('expected ZeroDivisionError')
/third_party/node/lib/
Dassert.js63 const AssertionError = require('internal/assert/assertion_error'); constant
125 throw new AssertionError(obj);
168 const err = new AssertionError(errArgs);
178 assert.AssertionError = AssertionError;
391 const err = new AssertionError({
626 const err = new AssertionError({
666 const err = new AssertionError({
741 const err = new AssertionError({
953 const newErr = new AssertionError({
1018 const err = new AssertionError({
/third_party/typescript/tests/ts_extra_tests/suite/
Dassert.ts1 import { AssertionError } from "./assertionError.js"
14 throw new AssertionError(msg ? msg : this.defaultMessage(actual, expect));
19 throw new AssertionError(msg ? msg : this.defaultMessage(actual, expect, false));
/third_party/python/Lib/test/test_asyncio/
Dutils.py372 raise AssertionError("Time generator is not finished")
387 raise AssertionError(f'fd {fd} is not registered')
390 raise AssertionError(
393 raise AssertionError(
398 raise AssertionError(f'fd {fd} is registered')
413 raise AssertionError(f'fd {fd} is not registered')
416 raise AssertionError(f'{handle._callback!r} != {callback!r}')
418 raise AssertionError(f'{handle._args!r} != {args!r}')
535 raise AssertionError('loop is None')
/third_party/python/Lib/distutils/tests/
Dtest_extension.py36 self.assertRaises(AssertionError, Extension, 1, [])
42 self.assertRaises(AssertionError, Extension, 'name', 'file')
43 self.assertRaises(AssertionError, Extension, 'name', ['file', 1])
/third_party/python/Lib/test/
Daudit-tests.py51 raise AssertionError(f"{x!r} should equal {y!r}")
56 raise AssertionError(f"{el!r} should be in {series!r}")
61 raise AssertionError(f"{el!r} should not be in {series!r}")
66 raise AssertionError(f"{x!r} should equal {y!r}")
68 raise AssertionError(f"{x!r} should equal {y!r}")
77 if isinstance(ex, AssertionError):
Dtest_wsgiref.py94 if not it[n]==item: raise AssertionError
101 raise AssertionError("Too many items from __getitem__",it)
110 if not iter(it) is it: raise AssertionError
112 if not next(it) == item: raise AssertionError
118 raise AssertionError("Too many items from .__next__()", it)
687 raise AssertionError("This should be caught by handler")
712 raise AssertionError("This should be caught by handler")
789 raise AssertionError("This should be caught by handler")
/third_party/node/test/fixtures/errors/
Derror_exit.snapshot3 throw new AssertionError(obj);
6 AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
/third_party/googletest/googletest/test/
Dgoogletest-uninitialized-test.py41 raise AssertionError
48 raise AssertionError
/third_party/python/Lib/test/support/
Dthreading_helper.py100 raise AssertionError(msg)
114 raise AssertionError(msg)
152 raise AssertionError('Unable to join %d threads' % len(started))
/third_party/python/Tools/demo/
Deiffel.py137 self.assertRaises(AssertionError, t.m2, 0)
140 self.assertRaises(AssertionError, s.m2, 1)
141 self.assertRaises(AssertionError, s.m2, 10)
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/number/
DMicroProps.java51 throw new AssertionError("Cannot re-use a mutable MicroProps in the quantity chain"); in processQuantity()
63 throw new AssertionError(e); in clone()
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/
DMicroProps.java100 throw new AssertionError("Cannot re-use a mutable MicroProps in the quantity chain"); in processQuantity()
112 throw new AssertionError(e); in clone()
/third_party/libphonenumber/java/demo/src/main/java/com/google/phonenumbers/demo/helper/
DWebHelper.java53 throw new AssertionError(e); in getPermaLinkURL()
72 throw new AssertionError(e); in getNewIssueLink()

1234567891011