Home
last modified time | relevance | path

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

12345678910>>...13

/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;
586 assertNotDeepOrStrict(err1, new Error('foo2'), assert.AssertionError);
587 assertNotDeepOrStrict(err1, new TypeError('foo1'), assert.AssertionError);
589 assertNotDeepOrStrict(err1, {}, AssertionError);
684 AssertionError,
689 AssertionError,
695 AssertionError,
721 AssertionError,
729 () => assert.deepEqual({ a: 4 }, { a: 4, b: true }), AssertionError);
739 AssertionError);
[all …]
Dtest-assert-typedarray-deepequal.js77 assert.AssertionError
85 assert.AssertionError
89 assert.AssertionError
/third_party/node/deps/npm/node_modules/bluebird/js/release/
Dassert.js3 var AssertionError = (function() { class
4 function AssertionError(a) { class in module.exports.AssertionError
9 AssertionError.prototype = new Error(); class
10 AssertionError.prototype.constructor = AssertionError;
11 AssertionError.prototype.constructor$ = Error;
12 return AssertionError;
49 var ret = new AssertionError(message);
/third_party/flutter/engine/flutter/testing/dart/
Dcompositing_test.dart30 throwsA(const TypeMatcher<AssertionError>()),
44 throwsA(const TypeMatcher<AssertionError>()),
58 throwsA(const TypeMatcher<AssertionError>()),
91 fail('Expected addRetained to throw AssertionError but it returned successully');
92 } on AssertionError catch (error) {
112 fail('Expected push to throw AssertionError but it returned successully');
113 } on AssertionError catch (error) {
133 fail('Expected second addRetained to throw AssertionError but it returned successully');
134 } on AssertionError catch (error) {
154 fail('Expected push to throw AssertionError but it returned successully');
[all …]
/third_party/node/doc/api/
Dassert.md50 // AssertionError: Expected inputs to be strictly deep-equal:
91 // WARNING: This does not throw an AssertionError!
95 ## Class: assert.AssertionError
100 will be instances of the `AssertionError` class.
102 ### `new assert.AssertionError(options)` argument
133 // Generate an AssertionError to compare the error message later:
134 const { message } = new assert.AssertionError({
144 assert(err instanceof assert.AssertionError);
146 assert.strictEqual(err.name, 'AssertionError');
380 The following example does not throw an [`AssertionError`][] because the
[all …]
/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/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/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/flutter/flutter/dev/integration_tests/channels/android/app/src/main/java/com/yourcompany/channels/
DMainActivity.java90 throw new AssertionError("Should not be called"); in doSuccessHandshake()
95 throw new AssertionError("Should not be called"); in doSuccessHandshake()
104 throw new AssertionError("Should not be called"); in doErrorHandshake()
115 throw new AssertionError("Should not be called"); in doErrorHandshake()
124 throw new AssertionError("Should not be called"); in doNotImplementedHandshake()
129 throw new AssertionError("Should not be called"); in doNotImplementedHandshake()
/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.js60 const AssertionError = require('internal/assert/assertion_error'); constant
118 throw new AssertionError(obj);
162 const err = new AssertionError(errArgs);
172 assert.AssertionError = AssertionError;
386 const err = new AssertionError({
621 const err = new AssertionError({
661 const err = new AssertionError({
736 const err = new AssertionError({
950 const newErr = new AssertionError({
1009 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):
/third_party/flutter/flutter/packages/flutter/test/foundation/
Dassertions_test.dart224 AssertionError error;
227 } on AssertionError catch (e) {
240 AssertionError error;
244 } on AssertionError catch (e) {
266 AssertionError error;
274 } on AssertionError catch (e) {
303 AssertionError error;
309 } on AssertionError catch (e) {
/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/flutter/engine/flutter/shell/platform/android/io/flutter/view/
DFlutterNativeView.java85 if (!isAttached()) throw new AssertionError("Platform view is not attached"); in assertAttached()
90 throw new AssertionError("An entrypoint must be specified"); in runFromBundle()
94 throw new AssertionError( in runFromBundle()
/third_party/node/test/message/
Derror_exit.out3 throw new AssertionError(obj);
6 AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:

12345678910>>...13