Home
last modified time | relevance | path

Searched refs:assert (Results 101 - 125 of 11450) sorted by relevance

12345678910>>...458

/third_party/node/test/parallel/
H A Dtest-http-mutable-headers.js24 const assert = require('assert');
48 assert.deepStrictEqual(headers, exoticObj);
49 assert.deepStrictEqual(res.getHeaderNames(), []);
50 assert.deepStrictEqual(res.getRawHeaderNames(), []);
51 assert.strictEqual(res.hasHeader('Connection'), false);
52 assert.strictEqual(res.getHeader('Connection'), undefined);
54 assert.throws(
62 assert.throws(
70 assert
[all...]
H A Dtest-repl-options.js27 const assert = require('assert');
31 assert.strictEqual(repl.repl, undefined);
53 assert.strictEqual(r1.input, stream);
54 assert.strictEqual(r1.output, stream);
55 assert.strictEqual(r1.input, r1.inputStream);
56 assert.strictEqual(r1.output, r1.outputStream);
57 assert.strictEqual(r1.terminal, true);
58 assert.strictEqual(r1.useColors, r1.terminal);
59 assert
[all...]
H A Dtest-os.js24 const assert = require('assert');
31 assert(!Number.isNaN(value), `${key} should not be NaN`);
32 assert.strictEqual(typeof value, 'number');
34 string: (value) => { assert.strictEqual(typeof value, 'string'); },
35 array: (value) => { assert.ok(Array.isArray(value)); },
37 assert.strictEqual(typeof value, 'object');
38 assert.notStrictEqual(value, null);
46 assert.strictEqual(os.tmpdir(), '/temp');
48 assert
[all...]
H A Dtest-webcrypto-webidl.js8 const assert = require('assert');
21 assert.throws(() => webidl.requiredArguments(0, 3, { prefix }), {
27 assert.throws(() => webidl.requiredArguments(0, 1, { prefix }), {
39 assert.strictEqual(converters.boolean(0), false);
40 assert.strictEqual(converters.boolean(NaN), false);
41 assert.strictEqual(converters.boolean(undefined), false);
42 assert.strictEqual(converters.boolean(null), false);
43 assert.strictEqual(converters.boolean(false), false);
44 assert
[all...]
H A Dtest-util-inspect-proxy.js5 const assert = require('assert');
50 assert.strictEqual(target, details[0]);
51 assert.strictEqual(handler, details[1]);
54 assert.strictEqual(target, details[0]);
55 assert.strictEqual(handler, details[1]);
58 assert.strictEqual(target, details);
61 assert.strictEqual(details, undefined);
67 assert.strictEqual(details[0], null);
68 assert
[all...]
H A Dtest-cli-eval.js31 const assert = require('assert');
44 assert.strictEqual(stdout, '');
45 assert.strictEqual(stderr, '');
51 assert.strictEqual(stdout, '');
52 assert.strictEqual(stderr, '42\n');
60 assert.strictEqual(stdout, '42\n');
61 assert.strictEqual(stderr, '');
65 assert.strictEqual(stdout, '[]\n');
66 assert
[all...]
/third_party/jerryscript/tests/jerry/es2015/
H A Dtypedarray-of.js39 assert (false);
41 assert (err instanceof TypeError);
46 assert (false);
48 assert (err instanceof TypeError);
52 assert(e.of(1,2,3).toString() === "1,2,3");
53 assert(e.of(12,4,5,0).toString() === "12,4,5,0");
54 assert(e.of(23).toString() === "23");
57 assert(e.of("12",4).toString() === "12,4");
58 assert(e.of(1,2,"foo").toString() === "1,2,0");
61 assert(
[all...]
H A Dfunction-prototype-hasinstance.js31 assert (base[Symbol.hasInstance] (obj_base) === true);
32 assert (base[Symbol.hasInstance] (obj_sub) === false);
33 assert (Object[Symbol.hasInstance] (obj_base) === true);
34 assert (Object[Symbol.hasInstance] (obj_sub) === true);
35 assert (obj_base.method () === 3);
37 assert (sub[Symbol.hasInstance] (obj_base) === false);
38 assert (sub[Symbol.hasInstance] (obj_sub) === true);
39 assert (obj_sub.method === undefined);
50 assert (base[Symbol.hasInstance] (obj_sub_c) === true);
52 assert (sub_
[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...]
H A Dfunction-pattern1.js20 assert (false);
24 assert (e instanceof type)
38 assert(a === 1);
39 assert(b === undefined);
42 assert(a === 3);
48 assert(a === 1);
49 assert(b === undefined);
52 assert(a === 3);
58 assert (a === 1);
59 assert (
[all...]
H A Dmap-prototype-foreach.js21 assert (map.size === i + 1);
27 assert (typeof key === "string");
28 assert (key === "foo" + counter);
29 assert (typeof value === "number");
30 assert (value === counter);
35 assert (map.size === 0);
41 assert (map.size === i + 1);
45 assert (typeof key === "number");
46 assert (key === counter + 0.5);
47 assert (typeo
[all...]
H A Dobject-prototype-proto.js17 assert(false);
19 assert(e instanceof SyntaxError);
23 assert((new f()).__proto__ === f.prototype);
27 assert(o instanceof Array);
32 assert(Object.getPrototypeOf(obj) !== p);
40 assert(Object.getPrototypeOf(shape) === circle);
41 assert(shape.__proto__ === circle);
43 assert(Object.prototype.hasOwnProperty('__proto__') === true);
46 assert((desc && "get" in desc && "set" in desc && desc.configurable && !desc.enumerable) === true);
48 assert((Objec
[all...]
H A Dweakmap.js18 assert (m1.set (k1, 3.14) instanceof WeakMap);
19 assert (m1.has (k1) === true);
20 assert (m1.get (k1) === 3.14);
25 assert (m1.has (k1) === false);
26 assert (m1.delete(k1) === false);
27 assert (m1.set (k1, "asd" + "fgh") instanceof WeakMap);
28 assert (m1.has (k1) === true);
29 assert (m1.get (k1) === "asdfgh");
31 assert (m1.delete ("str") === false);
32 assert (m
[all...]
H A Dmap-iterators.js20 assert(false);
22 assert(e instanceof TypeError);
29 assert(false);
31 assert(e instanceof TypeError);
46 assert(m[method]().toString() === '[object Map Iterator]');
52 assert(false);
54 assert(e instanceof TypeError);
61 assert(false);
63 assert(e instanceof TypeError);
75 assert(nex
[all...]
H A Dproxy_construct.js29 assert(false);
31 assert(e === 42);
37 assert(false);
39 assert(e === 42);
47 assert(false);
49 assert(e instanceof TypeError);
56 assert(false);
58 assert(e instanceof TypeError);
71 assert(called === false);
75 assert(calle
[all...]
/third_party/jerryscript/tests/jerry/
H A Darray-prototype-shift.js17 assert(array.length === 4);
19 assert(array.shift() === "foo");
20 assert(array.length === 3);
23 assert(a instanceof Array);
24 assert(array.length === 2);
26 assert(array.shift() === Infinity);
27 assert(array.length === 1);
29 assert(array.shift() === 4);
30 assert(array.length === 0);
32 assert(arra
[all...]
H A Darithmetics.js15 assert((1 + 2) == 3);
16 assert((2 + 1) == 3);
17 assert((2 + 1) != 4);
19 assert((7 + 7) == 14);
20 assert((7 - 7) == 0);
21 assert((7 * 7) == 49);
22 assert((7 / 7) == 1);
23 assert((7 + 7) == 14);
24 assert((7 % 7) == 0);
27 assert((numbe
[all...]
H A Darray-prototype-pop.js16 assert(array.length === 4);
18 assert(array.pop() === 4)
19 assert(array.length === 3);
21 assert(array.pop() === Infinity);
22 assert(array.length === 2);
25 assert(a instanceof Array);
26 assert(array.length === 1);
28 assert(array.pop() === "foo");
29 assert(array.length === 0);
31 assert(arra
[all...]
/third_party/node/test/internet/
H A Dtest-dns-any.js5 const assert = require('assert');
19 assert.ok(typeof req === 'object');
24 assert.ok(isIPv4(r.address));
25 assert.strictEqual(typeof r.ttl, 'number');
26 assert.strictEqual(r.type, 'A');
29 assert.ok(isIPv6(r.address));
30 assert.strictEqual(typeof r.ttl, 'number');
31 assert.strictEqual(r.type, 'AAAA');
34 assert
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/
H A Dtest_lru_map.c10 #include <assert.h>
85 assert(!bpf_map_lookup_elem(mfd, &zero, value)); in bpf_map_lookup_elem_with_ref_bit()
100 assert(!bpf_map_lookup_elem(map1, &next_key, value1)); in map_subset()
157 assert(sched_next_online(0, &next_cpu) != -1); in test_lru_sanity0()
163 assert(lru_map_fd != -1); in test_lru_sanity0()
166 assert(expected_map_fd != -1); in test_lru_sanity0()
173 assert(!bpf_map_update_elem(lru_map_fd, &key, value, BPF_NOEXIST)); in test_lru_sanity0()
174 assert(!bpf_map_update_elem(expected_map_fd, &key, value, in test_lru_sanity0()
178 assert(bpf_map_update_elem(lru_map_fd, &key, value, BPF_NOEXIST) == -EEXIST); in test_lru_sanity0()
181 assert(bpf_map_update_ele in test_lru_sanity0()
[all...]
/third_party/rust/crates/glob/src/
H A Dlib.rs339 assert!(self.dir_patterns.len() < !0 as usize); in next()
688 /// assert!(Pattern::new("c?t").unwrap().matches("cat"));
689 /// assert!(Pattern::new("k[!e]tteh").unwrap().matches("kitteh"));
690 /// assert!(Pattern::new("d*g").unwrap().matches("doog"));
1029 assert!("a*b".parse::<Pattern>().unwrap().matches("a_b")); in test_pattern_from_str()
1030 assert!("a/**b".parse::<Pattern>().unwrap_err().pos == 4); in test_pattern_from_str()
1035 assert!(Pattern::new("a/**b").unwrap_err().pos == 4); in test_wildcard_errors()
1036 assert!(Pattern::new("a/bc**").unwrap_err().pos == 3); in test_wildcard_errors()
1037 assert!(Pattern::new("a/*****").unwrap_err().pos == 4); in test_wildcard_errors()
1038 assert!(Patter in test_wildcard_errors()
[all...]
/third_party/node/test/sequential/
H A Dtest-perf-hooks.js7 const assert = require('assert');
15 assert(performance);
16 assert(performance.nodeTiming);
17 assert.strictEqual(typeof performance.timeOrigin, 'number');
19 assert(testStartTime > 0, `${testStartTime} <= 0`);
22 assert(testStartTime < 15000, `${testStartTime} >= 15000`);
31 assert(Math.abs(uptime1 - uptime2) < epsilon,
35 assert(Math.abs(uptime1 - uptime3) < epsilon,
41 assert
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/
H A Dtest_lru_map.c10 #include <assert.h>
96 assert(!bpf_map_lookup_elem(mfd, &zero, value)); in bpf_map_lookup_elem_with_ref_bit()
111 assert(!bpf_map_lookup_elem(map1, &next_key, value1)); in map_subset()
168 assert(sched_next_online(0, &next_cpu) != -1); in test_lru_sanity0()
174 assert(lru_map_fd != -1); in test_lru_sanity0()
177 assert(expected_map_fd != -1); in test_lru_sanity0()
184 assert(!bpf_map_update_elem(lru_map_fd, &key, value, BPF_NOEXIST)); in test_lru_sanity0()
185 assert(!bpf_map_update_elem(expected_map_fd, &key, value, in test_lru_sanity0()
189 assert(bpf_map_update_elem(lru_map_fd, &key, value, BPF_NOEXIST) == -1 in test_lru_sanity0()
193 assert(bpf_map_update_ele in test_lru_sanity0()
[all...]

Completed in 7 milliseconds

12345678910>>...458