Home
last modified time | relevance | path

Searched refs:assert (Results 326 - 350 of 10551) sorted by relevance

1...<<11121314151617181920>>...423

/third_party/node/deps/npm/node_modules/retry/test/integration/
H A Dtest-timeouts.js2 var assert = common.assert; variable
8 assert.equal(timeouts.length, 10);
9 assert.equal(timeouts[0], 1000);
10 assert.equal(timeouts[1], 2000);
11 assert.equal(timeouts[2], 4000);
21 assert.equal(timeouts.length, 10);
22 assert.ok(timeouts[0] > minTimeout);
23 assert.ok(timeouts[1] > timeouts[0]);
24 assert
[all...]
/third_party/skia/third_party/externals/harfbuzz/src/
H A Dtest-repacker.cc81 assert (overflowing.offset_overflow ()); in run_resolve_overflow_test()
83 assert (!out.offset_overflow ()); in run_resolve_overflow_test()
86 assert (!expected.offset_overflow ()); in run_resolve_overflow_test()
89 assert (result.length == expected_result.length); in run_resolve_overflow_test()
92 assert (result[i] == expected_result[i]); in run_resolve_overflow_test()
794 assert(strncmp (graph.object (3).head, "abc", 3) == 0); in test_sort_kahn_1()
795 assert(graph.object (3).links.length == 2); in test_sort_kahn_1()
796 assert(graph.object (3).links[0].objidx == 2); in test_sort_kahn_1()
797 assert(graph.object (3).links[1].objidx == 1); in test_sort_kahn_1()
799 assert(strncm in test_sort_kahn_1()
[all...]
H A Dtest-algs.cc49 assert (i == 2); in main()
53 assert (pc.second == 3); in main()
56 assert (&q != &p); in main()
58 assert (i == 4); in main()
65 assert (1 == hb_min (8, 1)); in main()
66 assert (8 == hb_max (8, 1)); in main()
74 assert (x == 3); in main()
80 assert (3 == hb_partial (hb_min, 3) (4)); in main()
81 assert (3 == hb_partial<1> (hb_min, 4) (3)); in main()
84 assert (M in main()
[all...]
/third_party/node/test/parallel/
H A Dtest-crypto-authenticated.js27 const assert = require('assert');
128 assert.strictEqual(hex, test.ct);
129 assert.strictEqual(auth_tag.toString('hex'), test.tag);
135 assert.throws(() => {
155 assert.strictEqual(msg, test.plain);
158 assert.throws(function() { decrypt.final('hex'); }, errMessages.auth);
165 assert.throws(() => { crypto.createCipher(test.algo, test.password); },
176 assert.strictEqual(hex, test.ct);
177 assert
[all...]
H A Dtest-cluster-basic.js25 const assert = require('node:assert');
29 assert.strictEqual('NODE_UNIQUE_ID' in process.env, false,
37 const { strictEqual } = require('node:assert');
42 assert.strictEqual(status, 0);
122 assert.strictEqual(worker.id, 1);
123 assert(worker instanceof cluster.Worker,
137 assert.strictEqual(arguments[0], worker.process.exitCode);
138 assert.strictEqual(arguments[1], worker.process.signalCode);
139 assert
[all...]
H A Dtest-priority-queue.js6 const assert = require('assert');
16 assert.strictEqual(queue.peek(), i);
17 assert.strictEqual(queue.shift(), i);
20 assert.strictEqual(queue.shift(), undefined);
27 assert.strictEqual(queue.shift(), i);
30 assert.strictEqual(queue.shift(), undefined);
40 assert.strictEqual(queue.shift(), i);
43 assert.strictEqual(queue.shift(), undefined);
53 assert
[all...]
H A Dtest-trace-events-api.js13 const assert = require('assert');
34 assert.strictEqual(getEnabledCategories(), enabledCategories);
36 assert.throws(() => createTracing(i), {
40 assert.throws(() => createTracing({ categories: i }), {
46 assert.throws(
56 assert.strictEqual(tracing.categories, 'node.perf');
57 assert.strictEqual(tracing.enabled, false);
59 assert.strictEqual(getEnabledCategories(), enabledCategories);
62 assert
[all...]
H A Dtest-vm-module-link.js7 const assert = require('assert');
18 assert.deepStrictEqual(bar.dependencySpecifiers, ['foo']);
21 assert.strictEqual(module, bar);
22 assert.strictEqual(specifier, 'foo');
27 assert.strictEqual(globalThis.fiveResult, 5);
41 assert.strictEqual(module, mod);
42 assert.strictEqual(specifier, parentName);
54 assert.strictEqual(barz.namespace.default, 5);
71 assert
[all...]
H A Dtest-assert-checktag.js3 const assert = require('assert');
21 assert.notDeepEqual(date, fake);
22 assert.notDeepEqual(fake, date);
26 assert.throws(
27 () => assert.deepStrictEqual(date, fake),
33 assert.throws(
34 () => assert.deepStrictEqual(fake, date),
48 assert.notDeepEqual(fakeGlobal, global);
50 assert
[all...]
H A Dtest-buffer-slow.js4 const assert = require('assert');
12 assert(sb instanceof Buffer);
13 assert.strictEqual(sb.length, 4);
16 assert.deepStrictEqual(value, ones[key]);
20 assert.strictEqual(sb.buffer.byteLength, 4);
24 assert(sb instanceof Buffer);
25 assert.strictEqual(sb.length, 4);
28 assert.deepStrictEqual(value, ones[key]);
32 assert
[all...]
H A Dtest-util-inherits.js4 const assert = require('assert');
21 assert.deepStrictEqual(
32 assert.strictEqual(b.a(), 'a');
33 assert.strictEqual(b.b(), 'b');
34 assert.strictEqual(b.constructor, B);
45 assert.strictEqual(C.super_, B);
48 assert.strictEqual(c.getValue(), 'abc');
49 assert.strictEqual(c.constructor, C);
60 assert
[all...]
H A Dtest-buffer-writeint.js6 const assert = require('assert');
20 assert.ok(buffer.equals(new Uint8Array([ 0x23, 0xfb ])));
25 assert.ok(buffer.equals(new Uint8Array([ 0x7f, 0x80 ])));
27 assert.throws(() => {
30 assert.throws(() => {
39 assert.throws(
45 assert.throws(
57 assert.ok(buffer.equals(new Uint8Array([ 0x00, 0x23, 0x23, 0x00 ])));
61 assert
[all...]
H A Dtest-whatwg-transformstream.js5 const assert = require('assert');
26 assert.throws(() => new TransformStream({ readableType: 1 }), {
29 assert.throws(() => new TransformStream({ writableType: 1 }), {
46 assert.strictEqual(result.value, 'hello');
69 assert(transform.started);
80 assert.strictEqual(result.value, 'HELLO');
86 assert(transform.flushed);
128 assert.strictEqual(check.toString().toUpperCase(), data);
133 assert
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/
H A DMachineOperand.h223 assert(!isReg() && "Register operands can't have target flags"); in setTargetFlags()
225 assert(SubReg_TargetFlags == F && "Target flags out of range"); in setTargetFlags()
228 assert(!isReg() && "Register operands can't have target flags"); in addTargetFlag()
230 assert((SubReg_TargetFlags & F) && "Target flags out of range"); in addTargetFlag()
359 assert(isReg() && "This is not a register operand!"); in getReg()
364 assert(isReg() && "Wrong MachineOperand accessor"); in getSubReg()
369 assert(isReg() && "Wrong MachineOperand accessor"); in isUse()
374 assert(isReg() && "Wrong MachineOperand accessor"); in isDef()
379 assert(isReg() && "Wrong MachineOperand accessor"); in isImplicit()
384 assert(isRe in isDead()
[all...]
/third_party/jerryscript/tests/jerry/
H A Dstring-prototype-concat.js26 assert(Object.getOwnPropertyDescriptor(String.prototype.concat, 'length').configurable === length_configurable());
28 assert(Object.getOwnPropertyDescriptor(String.prototype.concat, 'length').enumerable === false);
30 assert(Object.getOwnPropertyDescriptor(String.prototype.concat, 'length').writable === false);
36 assert(s1.concat(s2, s3, 3, 10, " ", ".") === "Hello world! 310 .");
37 assert("Hello ".concat(s1) === "Hello Hello ");
39 assert(s1.concat(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9) === "Hello 012345678901234567890123456789");
41 assert("".concat() === "");
44 assert("\u0041".concat("\u0041", "\u1041") === "\u0041\u0041\u1041");
45 assert("\u0041\u1D306A".concat("\u0041", "\u1041") === "\u0041\u1D306A\u0041\u1041");
49 assert("Chec
[all...]
H A Dregexp-web-compatibility.js21 assert (result === null);
25 assert (result !== null);
26 assert (result.length === expected.length);
30 assert (result[idx] === expected[idx]);
129 assert (false);
131 assert (ex instanceof SyntaxError);
136 assert (false);
138 assert (ex instanceof SyntaxError);
143 assert (false);
145 assert (e
[all...]
/third_party/node/test/common/
H A Dmeasure-memory.js3 const assert = require('assert');
9 assert.strictEqual(typeof result.jsMemoryEstimate, 'number');
10 assert.strictEqual(typeof result.jsMemoryRange[0], 'number');
11 assert.strictEqual(typeof result.jsMemoryRange[1], 'number');
15 assert.strictEqual(typeof result, 'object');
16 assert.strictEqual(typeof result.total, 'object');
21 assert.strictEqual(typeof result, 'object');
22 assert.strictEqual(typeof result.total, 'object');
23 assert
[all...]
/third_party/mesa3d/src/imagination/rogue/
H A Drogue_nir_helpers.h27 #include <assert.h>
42 assert(!alu->dest.dest.is_ssa); in nir_alu_dest_regindex()
49 assert(!alu->dest.dest.is_ssa); in nir_alu_dest_comp()
50 assert(util_is_power_of_two_nonzero(alu->dest.write_mask)); in nir_alu_dest_comp()
58 assert(src < nir_op_infos[alu->op].num_inputs); in nir_alu_src_regindex()
59 assert(!alu->src[src].src.is_ssa); in nir_alu_src_regindex()
66 assert(src < nir_op_infos[alu->op].num_inputs); in nir_alu_src_const()
67 assert(alu->src[src].src.is_ssa); in nir_alu_src_const()
76 assert(src < nir_op_infos[alu->op].num_inputs); in nir_alu_src_is_const()
81 assert(al in nir_alu_src_is_const()
[all...]
/third_party/node/test/async-hooks/
H A Dtest-async-local-storage-errors.js3 const assert = require('assert');
31 assert.strictEqual(origin, 'uncaughtException');
32 assert.strictEqual(asyncLocalStorage.getStore(), callbackToken);
34 assert.strictEqual(origin, 'unhandledRejection');
35 assert.strictEqual(asyncLocalStorage.getStore(), awaitToken);
37 assert.fail('unknown error ' + err);
45 assert.strictEqual(err.message, 'err2');
46 assert.strictEqual(asyncLocalStorage.getStore(), callbackToken);
54 assert
[all...]
/third_party/node/test/internet/
H A Dtest-dns-ipv6.js7 const assert = require('assert');
39 assert.ok(typeof req === 'object');
44 assert.ok(res.length > 0);
47 assert.ok(isIPv6(res[i]));
65 assert.ok(res.length > 0);
68 assert.ok(typeof res[i] === 'string');
86 assert.ok(isIPv6(res.address));
87 assert.strictEqual(res.family, 6);
106 // assert
[all...]
/third_party/alsa-lib/src/control/
H A Dhcontrol.c93 assert(hctlp); in snd_hctl_open_ctl()
115 assert(hctl); in snd_hctl_close()
132 assert(hctl); in snd_hctl_name()
144 assert(hctl); in snd_hctl_nonblock()
159 assert(hctl); in snd_hctl_async()
170 assert(hctl); in snd_hctl_poll_descriptors_count()
183 assert(hctl); in snd_hctl_poll_descriptors()
197 assert(hctl); in snd_hctl_poll_descriptors_revents()
326 assert(hctl && id); in _snd_hctl_find_elem()
327 assert(hct in _snd_hctl_find_elem()
[all...]
/third_party/jerryscript/tests/jerry/es2015/
H A Dlet4.js20 assert (g === undefined);
23 assert (g() === 1);
27 eval("assert (g() === 2)");
31 assert (g() === 1);
34 assert (g() === 2);
41 assert (g === -1);
44 assert (g() === 1);
48 eval("assert (g() === 2)");
52 assert (g() === 1);
55 assert (
[all...]
H A Dlet7.js17 assert (typeof f === "undefined");
26 assert (g === 9);
32 assert (false);
35 assert (f() === 6);
42 assert ((function() { return g + f(); })() === 17);
48 assert (false);
51 assert (f() === 8);
57 assert (g == 4);
64 assert (false);
67 assert (
[all...]
H A Dsymbol-in.js20 assert ((test_symbol in obj) === false);
24 assert ((test_symbol in obj) === true);
25 assert (obj[test_symbol] === 'value');
30 assert ((test_symbol in array) === false);
34 assert ((test_symbol in array) === true);
35 assert (array[test_symbol] === 'value');
38 assert ((test_symbol in Symbol) === false);
42 assert (false);
44 assert (ex instanceof TypeError);
49 assert (fals
[all...]
/third_party/rust/crates/clap/tests/builder/
H A Dopts.rs17 assert!(res.is_err()); in require_equals_fail()
51 assert!(res.is_ok(), "{}", res.unwrap_err()); in require_equals_min_values_zero()
53 assert!(m.contains_id("cfg")); in require_equals_min_values_zero()
67 assert!(res.is_ok(), "{:?}", res); in double_hyphen_as_value()
86 assert!(res.is_err()); in require_equals_no_empty_values_fail()
100 assert!(res.is_ok(), "{}", res.unwrap_err()); in require_equals_empty_vals_pass()
113 assert!(res.is_ok(), "{}", res.unwrap_err()); in require_equals_pass()
121 assert!(r.is_ok(), "{}", r.unwrap_err()); in stdin_char()
123 assert!(m.contains_id("f")); in stdin_char()
135 assert!( in opts_using_short()
[all...]

Completed in 12 milliseconds

1...<<11121314151617181920>>...423