Home
last modified time | relevance | path

Searched refs:assert (Results 426 - 450 of 11453) sorted by relevance

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

/third_party/node/test/parallel/
H A Dtest-crypto-pbkdf2.js6 const assert = require('assert');
15 assert.deepStrictEqual(asyncResult, syncResult);
23 assert.strictEqual(actual.toString(encoding || 'latin1'), expected);
58 assert.throws(
67 assert.throws(
77 assert.throws(
89 assert.throws(
102 assert.throws(
116 assert
[all...]
H A Dtest-fs-mkdtemp.js4 const assert = require('assert');
12 assert.ifError(err);
13 assert(fs.existsSync(folder));
14 assert.strictEqual(this, undefined);
21 assert.strictEqual(path.basename(tmpFolder).length, 'foo.XXXXXX'.length);
22 assert(fs.existsSync(tmpFolder));
25 assert.strictEqual(Buffer.byteLength(path.basename(utf8)),
27 assert(fs.existsSync(utf8));
45 assert
[all...]
H A Dtest-stream2-writable.js26 const assert = require('assert');
58 assert.deepStrictEqual(tw.buffer, chunks);
76 assert.deepStrictEqual(tw.buffer, chunks);
99 assert.deepStrictEqual(tw.buffer, chunks);
100 assert.strictEqual(drains, 17);
115 assert(tw.writableLength >= 50);
145 assert.deepStrictEqual(tw.buffer, chunks);
163 assert.strictEqual(typeof chunk, 'string');
184 assert
[all...]
H A Dtest-http2-create-client-secure-session.js10 const assert = require('assert');
23 assert(stream.session.encrypted);
24 assert.strictEqual(stream.session.alpnProtocol, 'h2');
26 assert(Array.isArray(originSet));
27 assert.strictEqual(originSet[0],
30 assert(headers[':authority'].startsWith(socket.servername));
48 assert.strictEqual(client.socket.listenerCount('secureConnect'), 1);
52 assert(client.encrypted);
53 assert
[all...]
H A Dtest-validators.js5 const assert = require('assert');
37 assert.throws(() => {
40 assert.throws(() => {
51 ].forEach((val) => assert.throws(() => validateInt32(val, 'name'), {
56 ].forEach((val) => assert.throws(() => validateInt32(val, 'name'), {
64 ].forEach((val) => assert.throws(() => validateUint32(val, 'name'), {
69 ].forEach((val) => assert.throws(() => validateUint32(val, 'name'), {
84 assert.throws(() => {
90 assert
[all...]
H A Dtest-whatwg-url-custom-parsing.js11 const assert = require('assert');
54 assert.throws(
57 assert.throws(() => { throw error; }, expectedError);
58 assert.strictEqual(`${error}`, 'TypeError [ERR_INVALID_URL]: Invalid URL');
59 assert.strictEqual(error.message, 'Invalid URL');
69 if (test.href) assert.strictEqual(url.href, test.href);
70 if (test.origin) assert.strictEqual(url.origin, test.origin);
71 if (test.protocol) assert.strictEqual(url.protocol, test.protocol);
72 if (test.username) assert
[all...]
H A Dtest-crypto-dh-errors.js6 const assert = require('assert');
12 assert.throws(() => crypto.createDiffieHellman(13.37), {
19 assert.throws(() => crypto.createDiffieHellman('abcdef', 13.37), {
28 assert.throws(() => crypto.createDiffieHellman(bits), {
34 assert.throws(() => crypto.createDiffieHellman(bits), {
48 assert.throws(() => crypto.createDiffieHellman('abcdef', g), ex);
49 assert.throws(() => crypto.createDiffieHellman('abcdef', 'hex', g), ex);
60 assert.throws(() => crypto.createDiffieHellman('abcdef', g), ex);
61 assert
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/net/mptcp/
H A Dmptcp_sockopt.c5 #include <assert.h>
289 assert(ret < 0); /* 0 size_subflow_data */ in do_getsockopt_bogus_sf_data()
290 assert(olen == sizeof(good_data)); in do_getsockopt_bogus_sf_data()
295 assert(ret == 0); in do_getsockopt_bogus_sf_data()
296 assert(olen == sizeof(good_data)); in do_getsockopt_bogus_sf_data()
297 assert(bd.d.num_subflows == 1); in do_getsockopt_bogus_sf_data()
298 assert(bd.d.size_kernel > 0); in do_getsockopt_bogus_sf_data()
299 assert(bd.d.size_user == 0); in do_getsockopt_bogus_sf_data()
305 assert(ret < 0); /* bogus olen */ in do_getsockopt_bogus_sf_data()
306 assert(ole in do_getsockopt_bogus_sf_data()
[all...]
/third_party/rust/crates/clap/tests/builder/
H A Drequire.rs13 assert!(result.is_err()); in flag_required()
29 assert!(*m.get_one::<bool>("color").expect("defaulted by clap")); in flag_required_2()
30 assert!(*m.get_one::<bool>("flag").expect("defaulted by clap")); in flag_required_2()
39 assert!(result.is_err()); in option_required()
51 assert!(m.contains_id("c")); in option_required_2()
56 assert!(m.contains_id("f")); in option_required_2()
65 assert!(result.is_err()); in positional_required()
76 assert!(m.contains_id("flag")); in positional_required_2()
154 assert!(result.is_err()); in group_required()
168 assert!(* in group_required_2()
[all...]
H A Darg_aliases.rs16 assert!(a.is_ok(), "{}", a.unwrap_err()); in single_alias_of_option()
18 assert!(a.contains_id("alias")); in single_alias_of_option()
37 assert!(long.is_ok(), "{}", long.unwrap_err()); in multiple_aliases_of_option()
43 assert!(als1.is_ok(), "{}", als1.unwrap_err()); in multiple_aliases_of_option()
49 assert!(als2.is_ok(), "{}", als2.unwrap_err()); in multiple_aliases_of_option()
55 assert!(als3.is_ok(), "{}", als3.unwrap_err()); in multiple_aliases_of_option()
58 assert!(long.contains_id("aliases")); in multiple_aliases_of_option()
59 assert!(als1.contains_id("aliases")); in multiple_aliases_of_option()
60 assert!(als2.contains_id("aliases")); in multiple_aliases_of_option()
61 assert!(als in multiple_aliases_of_option()
[all...]
/third_party/rust/crates/clap/src/builder/
H A Ddebug_asserts.rs23 assert!(
51 assert!(!l.starts_with('-'), "Command {}: long_flag {:?} must not start with a `-`, that will be handled by the parser", sc.get_name(), l);
63 assert!(
79 assert!(!l.starts_with('-'), "Argument {}: long {:?} must not start with a `-`, that will be handled by the parser", arg.get_id(), l);
146 assert!(
156 assert!(
161 assert!(
171 assert!(
176 assert!(
186 assert!(
[all...]
/third_party/node/test/fixtures/
H A Dprocess-exit-code-cases.js3 const assert = require('assert');
10 assert.strictEqual(process.exitCode, 42);
11 assert.strictEqual(code, 42);
19 assert.strictEqual(process.exitCode, 42);
20 assert.strictEqual(code, 42);
29 assert.strictEqual(process.exitCode, 0);
30 assert.strictEqual(code, 0);
39 // cannot use assert because it will be uncaughtException -> 1 exit code
57 assert
[all...]
/third_party/jerryscript/tests/jerry/
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/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/jerryscript/tests/jerry/es2015/
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...]
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/
H A Dtest_maps.c13 #include <assert.h>
51 assert(bpf_map_update_elem(fd, &key, &value, BPF_ANY) == 0); in test_hashmap()
55 assert(bpf_map_update_elem(fd, &key, &value, BPF_NOEXIST) < 0 && in test_hashmap()
60 assert(bpf_map_update_elem(fd, &key, &value, -1) < 0 && in test_hashmap()
64 assert(bpf_map_lookup_elem(fd, &key, &value) == 0 && value == 1234); in test_hashmap()
69 assert(bpf_map_update_elem(fd, &key, &value, BPF_ANY) == 0); in test_hashmap()
72 assert(bpf_map_lookup_and_delete_elem(fd, &key, &value) == 0 && value == 1234); in test_hashmap()
75 assert(bpf_map_lookup_elem(fd, &key, &value) < 0 && errno == ENOENT); in test_hashmap()
78 assert(bpf_map_update_elem(fd, &key, &value, BPF_EXIST) < 0 && in test_hashmap()
83 assert(bpf_map_update_ele in test_hashmap()
[all...]
/third_party/alsa-utils/axfer/
H A Dxfer.c53 assert(xfer); in xfer_context_init()
54 assert(direction >= SND_PCM_STREAM_PLAYBACK); in xfer_context_init()
55 assert(direction <= SND_PCM_STREAM_CAPTURE); in xfer_context_init()
89 assert(xfer); in xfer_context_destroy()
123 assert(xfer); in xfer_context_pre_process()
124 assert(format); in xfer_context_pre_process()
125 assert(samples_per_frame); in xfer_context_pre_process()
126 assert(frames_per_second); in xfer_context_pre_process()
127 assert(access); in xfer_context_pre_process()
128 assert(frames_per_buffe in xfer_context_pre_process()
[all...]
/third_party/libfuse/test/
H A Dtest_write_cache.c19 #include <assert.h>
64 assert(conn->capable & FUSE_CAP_WRITEBACK_CACHE); in tfs_init()
127 assert(ino == FILE_INO); in tfs_open()
140 assert(ino == FILE_INO); in tfs_write()
198 assert(fuse_session_loop(se) == 0); in run_fs()
210 assert(buf != NULL); in test_fs()
211 assert((fd = open("/dev/urandom", O_RDONLY)) != -1); in test_fs()
212 assert(read(fd, buf, dsize) == dsize); in test_fs()
215 assert(snprintf(fname, PATH_MAX, "%s/" FILE_NAME, in test_fs()
220 assert( in test_fs()
[all...]
/third_party/rust/crates/autocfg/src/
H A Dtests.rs31 assert!(ac.probe_rustc_version(1, 0)); in autocfg_version()
39 assert!(Version::new(1, 0, 0) < v123); in version_cmp()
40 assert!(Version::new(1, 2, 2) < v123); in version_cmp()
41 assert!(Version::new(1, 2, 3) == v123); in version_cmp()
42 assert!(Version::new(1, 2, 4) > v123); in version_cmp()
43 assert!(Version::new(1, 10, 0) > v123); in version_cmp()
44 assert!(Version::new(2, 0, 0) > v123); in version_cmp()
54 assert!(ac.probe_path(&add)); in probe_add()
55 assert!(ac.probe_trait(&add)); in probe_add()
56 assert!(a in probe_add()
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/proc/
H A Dproc-subset-pid.c21 #include <assert.h>
78 assert(d); in main()
89 assert(!dot); in main()
91 assert(de->d_type == DT_DIR); in main()
93 assert(!dot_dot); in main()
95 assert(de->d_type == DT_DIR); in main()
97 assert(!self); in main()
99 assert(de->d_type == DT_LNK); in main()
101 assert(!thread_self); in main()
103 assert(d in main()
[all...]

Completed in 10 milliseconds

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