/third_party/node/test/parallel/ |
H A D | test-crypto-dh.js | 6 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 D | test-event-emitter-remove-all-listeners.js | 24 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 D | test-process-env-allowed-flags.js | 4 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 D | test-child-process-exec-encoding.js | 11 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 D | test-child-process-send-returns-boolean.js | 8 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 D | test-event-emitter-modify-in-emit.js | 24 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 D | test-net-pingpong.js | 24 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 D | test-destroy-not-blocked.js | 5 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 D | typedarray-prototype-values.js | 29 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 D | string-prototype-match.js | 28 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 D | reflect-deleteproperty.js | 25 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 D | math-trunc.js | 26 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 D | arguments-iterator.js | 18 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 D | proxy_revocable.js | 26 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 D | string-prototype-slice.js | 19 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 D | date-utc.js | 18 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 D | for.js | 19 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 D | array-prototype-tolocalestring.js | 15 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 D | v8.js | 2 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 D | restparams-bench.js | 4 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 D | agx_pack.c | 40 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 D | object-getprototypeof.js | 18 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 D | macros.rs | 8 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 D | sp_private.h | 30 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 D | sp_private.h | 30 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...] |