Home
last modified time | relevance | path

Searched refs:assert (Results 76 - 100 of 11456) sorted by relevance

12345678910>>...459

/third_party/jerryscript/tests/jerry/es2015/
H A Dsymbol.js19 assert (a !== b);
20 assert (a === a);
21 assert (typeof a === 'symbol');
22 assert (a.toString() == 'Symbol(foo)');
23 assert (Object.prototype.toString.call (a) === "[object Symbol]");
24 assert (JSON.stringify (a) === undefined);
28 assert (obj[a] === 'EnumerableSymbolProp');
36 assert (v === 'c' || v === 'd');
40 assert (counter === 2);
43 assert (key
[all...]
H A Dobject-prototype-tostring.js16 assert (Symbol.prototype[Symbol.toStringTag] === "Symbol");
17 assert (Object.prototype.toString.call (Symbol ()) === "[object Symbol]");
19 assert (delete Symbol.prototype[Symbol.toStringTag]);
20 assert (Symbol.prototype[Symbol.toStringTag] === undefined);
22 assert (Object.prototype.toString.call (Symbol ()) === "[object myStringTag1]");
24 assert (Object.prototype.toString.call (Symbol ()) === "[object Symbol]");
27 assert (Math[Symbol.toStringTag] === "Math");
28 assert (Object.prototype.toString.call (Math) === "[object Math]");
30 assert (delete Math[Symbol.toStringTag]);
31 assert (Mat
[all...]
H A Dregexp-flags.js18 assert(m !== null);
19 assert(m[0] === "?");
22 assert (r.exec("E?E")[0] === 'E');
23 assert (r.exec("E?E")[0] === '?');
24 assert (r.exec("E?E")[0] === 'E');
28 assert (false);
30 assert (e instanceof SyntaxError);
33 assert (/\udc96/.exec("\ud803\udc96")[0] === '\udc96');
34 assert (/\udc96/u.exec("\ud803\udc96") === null);
35 assert (/\udc9
[all...]
H A Dtry-catch.js20 assert(e === undefined)
25 assert(e === 1)
27 assert(e === undefined)
33 assert(e === undefined)
39 assert(e === 2)
41 assert(e === 2)
43 assert(e === undefined)
49 assert(e === -1)
56 assert(false)
58 assert(
[all...]
H A Dtemplate_string.js21 assert (false);
30 assert (false);
48 assert (`` === '');
49 assert (`abc` === 'abc');
50 assert (`ab\
52 assert (`ab
55 assert (`prefix${a}` === 'prefixA');
56 assert (`${a}postfix` === 'Apostfix');
57 assert (`prefix${a}postfix` === 'prefixApostfix');
59 assert (`
[all...]
H A Dsymbol-search.js19 assert (false);
21 assert (e instanceof TypeError);
30 assert (false);
32 assert (e === "abrupt string");
41 assert (false);
43 assert (e === "abrupt get lastIndex");
55 assert (false);
57 assert (e === "abrupt set lastIndex");
66 assert (false);
68 assert (
[all...]
H A Dstring-prototype-endswith.js16 assert (x.endsWith ("Valley"));
17 assert (x.endsWith ("Boreal", 20));
18 assert (x.endsWith ("Dancer", 6));
19 assert (x.endsWith (""));
20 assert (x.endsWith ([]));
23 assert (y.endsWith ("Lala") === false);
24 assert (y.endsWith ("fell", 2) === false);
25 assert (y.endsWith ("Final", "Fantasy") === false);
26 assert (y.endsWith ("Hydaelyn", 30) === false);
27 assert (
[all...]
H A Dstring-prototype-startswith.js16 assert (x.startsWith ("My"));
17 assert (x.startsWith ("cat", 3));
18 assert (x.startsWith ("awesome", 10));
19 assert (x.startsWith (""));
20 assert (x.startsWith ("", 1));
21 assert (x.startsWith ("", 17));
22 assert (x.startsWith ([]));
24 assert (x.startsWith ("doggo") === false);
25 assert (x.startsWith ("awesome", 2) === false);
26 assert (
[all...]
H A Dsymbol-unscopables.js35 assert(prop1 === 42);
39 assert(false);
41 assert(e instanceof ReferenceError);
44 assert (prop3 === "foo");
48 assert(false);
50 assert(e instanceof ReferenceError);
55 assert(false);
57 assert(e instanceof ReferenceError);
67 assert(false);
69 assert(
[all...]
H A Dbuiltin-prototypes.js32 assert (Object.prototype.toString.call (proto) === '[object Object]');
37 assert (false);
39 assert (e instanceof TypeError);
44 assert (false);
46 assert (e instanceof TypeError);
51 assert (false);
53 assert (e instanceof TypeError);
58 assert (false);
60 assert (e instanceof TypeError);
65 assert (fals
[all...]
H A Dstring-prototype-includes.js16 assert (x.includes ("Moggle"));
17 assert (x.includes ("Moggle Mog", 3));
18 assert (x.includes (""));
19 assert (x.includes ([]));
22 assert (y.includes ("Dragon") === false);
23 assert (y.includes ("Rage", 11) === false);
24 assert (y.includes ("Final", "Fantasy") === false);
25 assert (y.includes ("Hydaelyn", 30) === false);
26 assert (y.includes (undefined) === false);
28 assert(Strin
[all...]
H A Darray-of.js17 assert(array1.length === 5);
18 assert(array1[2] === 3);
22 assert(array2.length === 0);
23 assert(array2[0] === undefined);
27 assert(array3.length === 3);
28 assert(array3[0] instanceof Array);
29 assert(array3[0][3] === 4);
30 assert(array3[2] === 7);
34 assert(array4.length === 1);
35 assert(array
[all...]
/third_party/node/test/parallel/
H A Dtest-tls-peer-certificate.js33 assert, connect, debug, keys
44 assert.ifError(err);
47 assert.deepStrictEqual(localCert, {});
49 assert.ok(!peerCert.issuerCertificate);
54 assert.ok(peerCert.issuerCertificate);
55 assert.strictEqual(peerCert.ca, false);
56 assert.strictEqual(peerCert.issuerCertificate.ca, true);
57 assert.strictEqual(peerCert.subject.emailAddress, 'ry@tinyclouds.org');
58 assert.strictEqual(peerCert.serialNumber, '147D36C1C2F74206DE9FAB5F2226D78ADB00A426');
59 assert
[all...]
H A Dtest-crypto-x509.js19 const assert = require('assert');
30 assert.throws(() => new X509Certificate(i), {
90 assert(isX509Certificate(x509));
92 assert(!x509.ca);
93 assert.strictEqual(x509.subject, subjectCheck);
94 assert.strictEqual(x509.subjectAltName, undefined);
95 assert.strictEqual(x509.issuer, issuerCheck);
96 assert.strictEqual(x509.infoAccess, infoAccessCheck);
97 assert
[all...]
H A Dtest-perf-hooks-resourcetiming.js4 const assert = require('assert');
16 assert(PerformanceObserver);
17 assert(PerformanceEntry);
18 assert.throws(() => new PerformanceEntry(), { code: 'ERR_ILLEGAL_CONSTRUCTOR' });
19 assert(PerformanceResourceTiming);
20 assert(clearResourceTimings);
21 assert(markResourceTiming);
67 assert.throws(() => new PerformanceResourceTiming(), {
89 assert(resourc
[all...]
H A Dtest-webcrypto-keygen.js9 const assert = require('assert');
163 return assert.rejects(
202 await assert.rejects(
220 await assert.rejects(
236 await assert.rejects(
271 assert(publicKey);
272 assert(privateKey);
273 assert(isCryptoKey(publicKey));
274 assert(isCryptoKe
[all...]
H A Dtest-whatwg-url-custom-searchparams.js6 const assert = require('assert');
21 assert.deepStrictEqual(Object.getOwnPropertySymbols(m), ownSymbolsBeforeGetterAccess);
23 assert(sp);
24 assert.strictEqual(sp.toString(), '');
25 assert.strictEqual(m.search, '');
27 assert(!sp.has('a'));
29 assert(sp.has('a'));
30 assert.strictEqual(sp.get('a'), '[object Object]');
32 assert(!s
[all...]
H A Dtest-http2-perf_hooks.js7 const assert = require('assert');
14 assert.strictEqual(entry.entryType, 'http2');
15 assert.strictEqual(typeof entry.startTime, 'number');
16 assert.strictEqual(typeof entry.duration, 'number');
19 assert.strictEqual(typeof entry.pingRTT, 'number');
20 assert.strictEqual(typeof entry.streamAverageDuration, 'number');
21 assert.strictEqual(typeof entry.streamCount, 'number');
22 assert.strictEqual(typeof entry.framesReceived, 'number');
23 assert
[all...]
H A Dtest-source-map-api.js5 const assert = require('assert');
12 assert.throws(
33 assert.strictEqual(sourceMap, undefined);
49 assert.strictEqual(originalLine, 2);
50 assert.strictEqual(originalColumn, 4);
51 assert(originalSource.endsWith('disk.js'));
57 assert.strictEqual(fileName, originalSource);
58 assert.strictEqual(lineNumber, 3);
59 assert
[all...]
H A Dtest-http2-session-stream-state.js6 const assert = require('assert');
18 assert.strictEqual(typeof state, 'object');
19 assert.strictEqual(typeof state.state, 'number');
20 assert.strictEqual(typeof state.weight, 'number');
21 assert.strictEqual(typeof state.sumDependencyWeight, 'number');
22 assert.strictEqual(typeof state.localClose, 'number');
23 assert.strictEqual(typeof state.remoteClose, 'number');
24 assert.strictEqual(typeof state.localWindowSize, 'number');
30 assert
[all...]
H A Dtest-querystring.js24 const assert = require('assert');
27 // test using assert
184 assert.strictEqual(qs.parse('id=918854443121279438895193').id,
188 assert(!(actual instanceof Object));
197 assert.deepStrictEqual(actualKeys, expectedKeys, msg);
207 assert.deepStrictEqual(actual[key], expected[key], msg);
227 assert.deepStrictEqual(qs.stringify(testCase[1], '&', '='), testCase[0]);
265 assert.strictEqual(qs.stringify(testCase[2]), testCase[1]);
269 assert
[all...]
H A Dtest-runner-cli.js4 const assert = require('assert');
16 assert.strictEqual(child.status, 1);
17 assert.strictEqual(child.signal, null);
18 assert.strictEqual(child.stdout.toString(), '');
19 assert.match(child.stderr.toString(), /^Could not find/);
28 assert.strictEqual(child.status, 1);
29 assert.strictEqual(child.signal, null);
30 assert.strictEqual(child.stderr.toString(), '');
32 assert
[all...]
/third_party/skia/third_party/externals/harfbuzz/src/
H A Dtest-bimap.cc35 assert (bm.is_empty () == true); in main()
39 assert (bm.get_population () == 3); in main()
40 assert (bm.has (1) == true); in main()
41 assert (bm.has (4) == false); in main()
42 assert (bm[2] == 5); in main()
43 assert (bm.backward (6) == 3); in main()
45 assert (bm.has (1) == false); in main()
46 assert (bm.has (3) == true); in main()
48 assert (bm.get_population () == 0); in main()
52 assert (ib in main()
[all...]
/third_party/jerryscript/tests/jerry/es5.1/
H A Dbuiltin-prototypes.js16 assert (Object.prototype.toString.call (String.prototype) === '[object String]');
17 assert (String.prototype.toString() === "");
19 assert (Object.prototype.toString.call (Boolean.prototype) === '[object Boolean]');
20 assert (Boolean.prototype.valueOf() === false);
22 assert (Object.prototype.toString.call (Number.prototype) === '[object Number]');
23 assert (Number.prototype.valueOf() === 0);
25 assert (Object.prototype.toString.call (Date.prototype) === '[object Date]');
26 assert (isNaN(Date.prototype.valueOf()));
28 assert (isNaN (Date.prototype.setTime()));
29 assert (isNa
[all...]
/kernel/linux/linux-5.10/lib/kunit/
H A Dassert.c8 #include <kunit/assert.h>
13 void kunit_base_assert_format(const struct kunit_assert *assert, in kunit_base_assert_format() argument
18 switch (assert->type) { in kunit_base_assert_format()
28 expect_or_assert, assert->file, assert->line); in kunit_base_assert_format()
32 void kunit_assert_print_msg(const struct kunit_assert *assert, in kunit_assert_print_msg() argument
35 if (assert->message.fmt) in kunit_assert_print_msg()
36 string_stream_add(stream, "\n%pV", &assert->message); in kunit_assert_print_msg()
40 void kunit_fail_assert_format(const struct kunit_assert *assert, in kunit_fail_assert_format() argument
43 kunit_base_assert_format(assert, strea in kunit_fail_assert_format()
48 kunit_unary_assert_format(const struct kunit_assert *assert, struct string_stream *stream) kunit_unary_assert_format() argument
67 kunit_ptr_not_err_assert_format(const struct kunit_assert *assert, struct string_stream *stream) kunit_ptr_not_err_assert_format() argument
88 kunit_binary_assert_format(const struct kunit_assert *assert, struct string_stream *stream) kunit_binary_assert_format() argument
110 kunit_binary_ptr_assert_format(const struct kunit_assert *assert, struct string_stream *stream) kunit_binary_ptr_assert_format() argument
132 kunit_binary_str_assert_format(const struct kunit_assert *assert, struct string_stream *stream) kunit_binary_str_assert_format() argument
[all...]

Completed in 6 milliseconds

12345678910>>...459