Home
last modified time | relevance | path

Searched refs:assert (Results 401 - 425 of 11461) sorted by relevance

1...<<11121314151617181920>>...459

/third_party/node/test/parallel/
H A Dtest-crypto-dh.js6 const assert = require('assert');
21 assert.strictEqual(secret2.toString('base64'), secret1);
22 assert.strictEqual(dh1.verifyError, 0);
23 assert.strictEqual(dh2.verifyError, 0);
32 assert.deepStrictEqual(dh1.getPrime(), dh3.getPrime());
33 assert.deepStrictEqual(dh1.getGenerator(), dh3.getGenerator());
34 assert.deepStrictEqual(dh1.getPublicKey(), dh3.getPublicKey());
35 assert.deepStrictEqual(dh1.getPrivateKey(), dh3.getPrivateKey());
36 assert
[all...]
H A Dtest-event-emitter-remove-all-listeners.js24 const assert = require('assert');
31 assert.deepStrictEqual(actual.sort(), expected.sort());
52 assert.deepStrictEqual(ee.listeners('foo'), [noop]);
53 assert.deepStrictEqual(ee.listeners('bar'), []);
54 assert.deepStrictEqual(ee.listeners('baz'), []);
57 assert.deepStrictEqual(fooListeners, [noop]);
58 assert.deepStrictEqual(barListeners, [noop]);
59 assert.deepStrictEqual(bazListeners, [noop, noop]);
62 assert
[all...]
H A Dtest-process-env-allowed-flags.js4 const assert = require('assert');
35 assert.strictEqual(
43 assert.strictEqual(
54 assert.match(flag, /^--?[a-zA-Z0-9._-]+$/);
60 assert.strictEqual(Object.isFrozen(process.allowedNodeEnvironmentFlags),
64 assert.strictEqual(process.allowedNodeEnvironmentFlags.has('foo'), false);
66 assert.strictEqual(process.allowedNodeEnvironmentFlags.has('foo'), false);
71 assert.notStrictEqual(flag, 'foo');
72 assert
[all...]
H A Dtest-child-process-exec-encoding.js11 const assert = require('assert');
25 assert.strictEqual(typeof stdout, 'string');
26 assert.strictEqual(typeof stderr, 'string');
27 assert.strictEqual(stdout, expectedStdout);
28 assert.strictEqual(stderr, expectedStderr);
33 assert.strictEqual(typeof stdout, 'string');
34 assert.strictEqual(typeof stderr, 'string');
35 assert.strictEqual(stdout, expectedStdout);
36 assert
[all...]
H A Dtest-child-process-send-returns-boolean.js8 const assert = require('assert');
20 const rv = n.send({ h: 'w' }, assert.ifError);
21 assert.strictEqual(rv, true);
36 const rv1 = s.send('one', handle, (err) => { if (err) assert.fail(err); });
37 assert.strictEqual(rv1, true);
40 const rv2 = s.send('two', (err) => { if (err) assert.fail(err); });
41 assert.strictEqual(rv2, true);
43 const rv3 = s.send('three', (err) => { if (err) assert.fail(err); });
44 assert
[all...]
H A Dtest-event-emitter-modify-in-emit.js24 const assert = require('assert');
49 assert.strictEqual(e.listeners('foo').length, 1);
52 assert.strictEqual(e.listeners('foo').length, 2);
53 assert.deepStrictEqual(['callback1'], callbacks_called);
56 assert.strictEqual(e.listeners('foo').length, 0);
57 assert.deepStrictEqual(['callback1', 'callback2', 'callback3'],
61 assert.strictEqual(e.listeners('foo').length, 0);
62 assert.deepStrictEqual(['callback1', 'callback2', 'callback3'],
67 assert
[all...]
/third_party/node/test/pummel/
H A Dtest-net-pingpong.js24 const assert = require('assert');
35 assert.strictEqual(socket.remoteAddress !== null, true);
36 assert.strictEqual(socket.remoteAddress !== undefined, true);
39 assert.strictEqual(address, '127.0.0.1');
41 assert(address === '127.0.0.1' || address === '::ffff:127.0.0.1' ||
45 assert.strictEqual(address, '::1');
54 assert.strictEqual(socket.readyState, 'open');
55 assert.strictEqual(count <= N, true);
62 assert
[all...]
/third_party/node/test/async-hooks/
H A Dtest-destroy-not-blocked.js5 const assert = require('assert');
18 assert.strictEqual(activeId, -1);
30 assert.strictEqual(activeId, -1);
32 assert.strictEqual(activeId, res.asyncId());
36 assert.strictEqual(activeId, res.asyncId())),
41 assert.strictEqual(activeId, -1);
43 assert.strictEqual(activeId, res.asyncId());
47 assert.strictEqual(activeId, res.asyncId())),
52 assert
[all...]
/third_party/jerryscript/tests/jerry/es2015/
H A Dtypedarray-prototype-values.js29 assert (false);
32 assert (e instanceof TypeError)
44 assert (current_item.value === e[i]);
45 assert (current_item.done === false);
47 assert (current_item.value === symbol_current_item.value);
48 assert (current_item.done === symbol_current_item.done);
54 assert (current_item.value === undefined);
55 assert (current_item.done === true);
56 assert (current_item.value === symbol_current_item.value);
57 assert (current_ite
[all...]
H A Dstring-prototype-match.js28 assert(str.match(regexp) === 1);
32 assert(false);
34 assert(e instanceof TypeError);
42 assert(false);
44 assert(e instanceof TypeError);
51 assert(false);
53 assert(e === 5);
60 assert(false);
62 assert(e instanceof SyntaxError);
69 assert(fals
[all...]
H A Dreflect-deleteproperty.js25 assert (object.property === undefined);
27 assert (2 === Reflect.deleteProperty.length);
31 assert (false);
33 assert (e instanceof TypeError);
38 assert (false);
40 assert (e instanceof TypeError);
45 assert (false);
47 assert (e instanceof TypeError);
54 assert (Reflect.deleteProperty (target, a));
58 assert (fals
[all...]
H A Dmath-trunc.js26 assert (isNaN(Math['trunc'](NaN)));
27 assert (isSameZero (Math['trunc'](p_zero), p_zero));
28 assert (isSameZero (Math['trunc'](m_zero), m_zero));
29 assert (Math['trunc'](p_inf) === p_inf);
30 assert (Math['trunc'](m_inf) === m_inf);
31 assert (isSameZero (Math['trunc'](0.5), p_zero));
32 assert (isSameZero (Math['trunc'](-0.5), m_zero));
33 assert (Math['trunc'](1.2) === 1);
34 assert (Math['trunc'](-1.5) === -1);
35 assert (Mat
[all...]
H A Darguments-iterator.js18 assert(typeof arguments[Symbol.iterator] === 'function');
19 assert(arguments[Symbol.iterator] === arrayPrototypeValues);
20 assert(Object.hasOwnProperty.call(arguments, Symbol.iterator));
30 assert(typeof arguments[Symbol.iterator] === 'function');
31 assert(arguments[Symbol.iterator] === arrayPrototypeValues);
32 assert(Object.hasOwnProperty.call(arguments, Symbol.iterator));
41 assert(f_mapped(1, 2, 3, 4, 5) === 15);
42 assert(f_unmapped(1, 2, 3, 4, 5) === 15);
46 assert(false);
49 assert(f_mappe
[all...]
H A Dproxy_revocable.js26 assert(proxy.a === 5);
32 assert(false);
34 assert(e instanceof TypeError);
39 assert(false);
41 assert(e instanceof TypeError);
46 assert(false);
48 assert(e instanceof TypeError);
53 assert(false);
55 assert(e instanceof TypeError);
60 assert(fals
[all...]
/third_party/jerryscript/tests/jerry/
H A Dstring-prototype-slice.js19 assert (res === "universe");
22 assert (res === "niver");
25 assert (res === "univ");
28 assert (res === "verse");
31 assert (res === "universe");
34 assert (res === "");
37 assert (res === "universe");
40 assert (res === "");
43 assert (res === "universe");
46 assert (re
[all...]
H A Ddate-utc.js18 assert (isNaN(d));
21 assert (isNaN(d));
24 assert (isNaN(d));
27 assert (d == 1420070400000);
30 assert (d == 1420070400000);
33 assert (d == 1420070400000);
36 assert (d == 1420070400000);
39 assert (d == 1420070400000);
42 assert (d == 1420070400000);
45 assert (
[all...]
H A Dfor.js19 assert(i == 100);
24 assert(j == 100);
30 assert(false);
34 assert(i == 100);
41 assert(i != 100);
42 assert(j != 100);
43 assert(i == 10);
44 assert(j == 10);
60 assert (s === '01');
77 assert (
[all...]
H A Darray-prototype-tolocalestring.js15 assert ([].toLocaleString() === "");
16 assert ([1].toLocaleString() === "1");
17 assert ([1,2].toLocaleString() === "1,2");
18 assert ([1,2,3].toLocaleString() === "1,2,3");
25 assert ([3, test_ok, 4, test_ok].toLocaleString() === "3,1,4,1");
31 assert(test_non_str_locale.toLocaleString() === ",undefined,,undefined,undefined");
39 assert (false);
41 assert (e instanceof TypeError);
52 assert (false);
54 assert (
[all...]
/third_party/node/test/common/
H A Dv8.js2 const assert = require('assert');
16 assert.ok(data.version > 0);
17 assert.ok(data.startTime >= 0);
18 assert.ok(data.endTime >= 0);
19 assert.ok(Array.isArray(data.statistics));
24 assert.ok(typeof item.gcType === 'string');
25 assert.ok(item.cost >= 0);
26 assert.ok(typeof item.beforeGC === 'object');
27 assert
[all...]
/third_party/node/benchmark/es/
H A Drestparams-bench.js4 const assert = require('assert');
16 assert.strictEqual(args[0], 1);
17 assert.strictEqual(args[1], 2);
18 assert.strictEqual(args[2], 'a');
19 assert.strictEqual(args[3], 'b');
23 assert.strictEqual(args[0], 1);
24 assert.strictEqual(args[1], 2);
25 assert.strictEqual(args[2], 'a');
26 assert
[all...]
/third_party/mesa3d/src/asahi/compiler/
H A Dagx_pack.c40 assert(index.size == AGX_SIZE_32); in agx_pack_sample_coords()
41 assert(index.value < 0x100); in agx_pack_sample_coords()
51 assert(index.type == AGX_INDEX_IMMEDIATE); in agx_pack_texture()
60 assert(index.type == AGX_INDEX_IMMEDIATE); in agx_pack_sampler()
69 assert(index.type == AGX_INDEX_NULL); in agx_pack_sample_offset()
82 assert(index.type == AGX_INDEX_REGISTER); in agx_pack_lod()
83 assert(index.size == AGX_SIZE_16); in agx_pack_lod()
84 assert(index.value < 0x100); in agx_pack_lod()
94 assert(index.size == AGX_SIZE_16 || index.size == AGX_SIZE_32); in agx_pack_memory_reg()
95 assert(inde in agx_pack_memory_reg()
[all...]
/third_party/jerryscript/tests/jerry/es5.1/
H A Dobject-getprototypeof.js18 assert (false);
20 assert (e instanceof TypeError);
25 assert (false);
27 assert (e instanceof TypeError);
32 assert (false);
34 assert (e instanceof TypeError);
39 assert (false);
41 assert (e instanceof TypeError);
45 assert (Object.getPrototypeOf(obj) === Object.prototype);
51 assert (Objec
[all...]
/third_party/rust/crates/clap/tests/
H A Dmacros.rs8 assert!(!arg.is_required_set()); in name_explicit()
17 assert!(!arg.is_required_set()); in name_from_long()
26 assert!(arg.is_required_set()); in name_from_value()
46 assert!(matches!(arg.get_action(), clap::ArgAction::SetTrue)); in short()
48 assert!(!arg.is_required_set()); in short()
54 assert!(matches!(arg.get_action(), clap::ArgAction::SetTrue)); in short()
56 assert!(!arg.is_required_set()); in short()
62 assert!(matches!(arg.get_action(), clap::ArgAction::Count)); in short()
64 assert!(!arg.is_required_set()); in short()
70 assert!(matche in short()
[all...]
/kernel/linux/linux-5.10/drivers/staging/media/atomisp/pci/hive_isp_css_common/host/
H A Dsp_private.h30 assert(ID < N_SP_ID); in sp_ctrl_store()
31 assert(SP_CTRL_BASE[ID] != (hrt_address)-1); in sp_ctrl_store()
40 assert(ID < N_SP_ID);
41 assert(SP_CTRL_BASE[ID] != (hrt_address)-1);
83 assert(ID < N_SP_ID);
84 assert(SP_DMEM_BASE[ID] != (hrt_address)-1);
95 assert(ID < N_SP_ID);
96 assert(SP_DMEM_BASE[ID] != (hrt_address)-1);
106 assert(ID < N_SP_ID);
107 assert(SP_DMEM_BAS
[all...]
/kernel/linux/linux-6.6/drivers/staging/media/atomisp/pci/hive_isp_css_common/host/
H A Dsp_private.h30 assert(ID < N_SP_ID); in sp_ctrl_store()
31 assert(SP_CTRL_BASE[ID] != (hrt_address)-1); in sp_ctrl_store()
40 assert(ID < N_SP_ID);
41 assert(SP_CTRL_BASE[ID] != (hrt_address)-1);
83 assert(ID < N_SP_ID);
84 assert(SP_DMEM_BASE[ID] != (hrt_address)-1);
95 assert(ID < N_SP_ID);
96 assert(SP_DMEM_BASE[ID] != (hrt_address)-1);
106 assert(ID < N_SP_ID);
107 assert(SP_DMEM_BAS
[all...]

Completed in 7 milliseconds

1...<<11121314151617181920>>...459