Home
last modified time | relevance | path

Searched refs:assert (Results 26 - 50 of 11450) sorted by relevance

12345678910>>...458

/third_party/jerryscript/tests/jerry/
H A Dstring-prototype-substr.js26 assert(Object.getOwnPropertyDescriptor(String.prototype.substr, 'length').configurable === length_configurable());
28 assert(Object.getOwnPropertyDescriptor(String.prototype.substr, 'length').enumerable === false);
30 assert(Object.getOwnPropertyDescriptor(String.prototype.substr, 'length').writable === false);
32 assert(String.prototype.substr.length === 2);
34 assert(String.prototype.substr.call(new String()) === "");
36 assert(String.prototype.substr.call({}) === "[object Object]");
41 assert(false);
43 assert(e instanceof TypeError);
49 assert(false);
51 assert(
[all...]
H A Djson-stringify.js16 assert (JSON.stringify ("") === '""');
19 assert (JSON.stringify (normal_string) == '"asdasd"');
22 assert (JSON.stringify (format_characters) == '"\\ba\\fs\\nd\\ra\\tsd"');
25 assert (JSON.stringify (ctl_string) == '"asd\\u001fasd"');
28 assert (JSON.stringify (escpad_string) == '"\\"asdasd"');
30 assert (JSON.stringify('\u2040') == '"⁀"');
31 assert (JSON.stringify('abc\u2040\u2030cba') == '"abc⁀‰cba"');
34 assert (JSON.stringify (1) === '1');
35 assert (JSON.stringify (true) === 'true');
36 assert (JSO
[all...]
H A Dstring-prototype-replace.js15 assert ("abcabc".replace("bc", ":") === "a:abc");
16 assert ("hello".replace("", ":") === ":hello");
17 assert ("hello".replace("h", "") === "ello");
18 assert ("".replace("", "h") === "h");
20 assert ("xabcxabcx".replace (/abc/g, "[$&][$`][$']") === "x[abc][x][xabcx]x[abc][xabcx][x]x");
21 assert ("abc".replace (/a(b)c|d()/, "[$1][$01][$2][$02][$99][$123][$012]") === "[b][b][][][$99][b23][b2]");
22 assert ("abc".replace("abc", "$x$$5$0$00$") === "$x$5$0$00$");
24 assert ("#x#".replace("x", "$1") === "#$1#");
25 assert ("#x#".replace(/(x)/, "$1$2") === "#x$2#");
26 assert ("#
[all...]
H A Dregexp-simple-atom-and-iterations.js18 assert (r.exec ("a") == "a");
19 assert (r.exec ("b") == undefined);
22 assert (r.exec ("abc") == "abc");
25 assert (r.exec ("aaa") == "aaa");
26 assert (r.exec ("b") == "");
29 assert (r.exec ("aaa") == "aaa");
30 assert (r.exec ("b") == undefined);
33 assert (r.exec ("a") == "a");
34 assert (r.exec ("ab") == "ab");
35 assert (
[all...]
H A Dregexp-character-class.js18 assert (r == "aaabbcccabcacbacabacbacab");
21 assert (r == "aaabbcccab");
24 assert (r == "");
27 assert (r == "abcdefghjklmnopqrstuvwxyz");
30 assert (r == "");
33 assert (r == "");
36 assert (r == "abcdefghjklmnopqrstuvwxyz");
39 assert (r == "");
42 assert (r == "abcdefghjklmnopqrstuvwxyz");
45 assert (
[all...]
H A Dregexp-routines.js18 assert (r.exec ("a") == "a");
19 assert (r.exec ("b") == null);
22 assert (false)
26 assert (e instanceof TypeError);
29 assert (r.test ("a") == true);
30 assert (r.test ("b") == false);
33 assert (false)
37 assert (e instanceof TypeError);
41 assert (r.toString () == "/a/gim");
48 assert (resul
[all...]
H A Darray.js17 assert (cars[0] === "Saab");
18 assert (cars[1] === "Volvo");
19 assert (cars[2] === "BMW");
22 assert (cars[0] === cars1[0]);
23 assert (cars[1] === cars1[1]);
24 assert (cars[2] === cars1[2]);
27 assert (typeof (a) === "object");
28 assert (Array.isArray (a));
29 assert (Array.isArray ([1, 2, 3]));
32 assert(
[all...]
H A Dglobal-parseint.js15 assert(parseInt("123") === 123);
16 assert(parseInt("+123") === 123);
17 assert(parseInt("-123") === -123);
18 assert(parseInt("0123") === 123);
19 assert(parseInt(" 123") === 123);
20 assert(parseInt(" \n 123") === 123);
21 assert(parseInt(" \n 123 \t") === 123);
22 assert(parseInt("0x123") === 291);
23 assert(parseInt("0X123") === 291);
24 assert(parseIn
[all...]
H A Darguments.js19 assert (f_arg (1) === 1);
27 assert (args[0] === undefined);
30 assert (args[0] === 1);
31 assert (args[1] === 2);
32 assert (args[2] === 3);
33 assert (args[3] === 4);
34 assert (args[4] === 5);
35 assert (args[5] === undefined);
37 assert (args.callee === f);
38 assert (typeo
[all...]
H A Dstring-prototype-indexof.js26 assert(Object.getOwnPropertyDescriptor(String.prototype.indexOf, 'length').configurable === length_configurable());
28 assert(Object.getOwnPropertyDescriptor(String.prototype.indexOf, 'length').enumerable === false);
30 assert(Object.getOwnPropertyDescriptor(String.prototype.indexOf, 'length').writable === false);
32 assert(String.prototype.indexOf.length === 1);
34 assert("Hello world, welcome to the universe.".indexOf("welcome") === 13);
36 assert("Hello world, welcome to the universe.".indexOf("Hello world, welcome to the universe.") === 0);
38 assert("Hello world, welcome to the universe.".indexOf("welcome",10) == 13);
40 assert("Hello world, welcome to the universe.".indexOf("welcome",-100) == 13);
42 assert("Hello world, welcome to the universe.".indexOf("welcome", 15) === -1);
44 assert("Hell
[all...]
H A Darray-prototype-slice.js28 assert (array1.length == 4);
29 assert (array1[0] == 54);
30 assert (array1[1] == undefined);
31 assert (array1[2] == "Lemon");
32 assert (array1[3] == -127);
34 assert (array2.length == 3);
35 assert (array2[0] == 54);
36 assert (array2[1] == undefined);
37 assert (array2[2] == "Lemon");
39 assert (array
[all...]
H A Dnumber-prototype-to-precision.js17 assert((123.56).toPrecision() === "123.56");
18 assert((123.56).toPrecision(1) === "1e+2");
19 assert((123.56).toPrecision(2) === "1.2e+2");
20 assert((123.56).toPrecision(6) === "123.560");
21 assert((-1.23).toPrecision(1) === "-1");
22 assert((0.00023).toPrecision(1) === "0.0002");
23 assert((0.356).toPrecision(2) === "0.36");
24 assert((0.0000356).toPrecision(5) === "0.000035600");
25 assert((0.000030056).toPrecision(4) === "0.00003006");
26 assert(Infinit
[all...]
H A Dnumber-prototype-to-exponential.js17 assert((123.56).toExponential() === "1.2356e+2");
18 assert((123.56).toExponential(0) === "1e+2");
19 assert((123.56).toExponential(1) === "1.2e+2");
20 assert((123.56).toExponential(5) === "1.23560e+2");
21 assert((-1.23).toExponential(1) === "-1.2e+0");
22 assert((0.00023).toExponential(0) === "2e-4");
23 assert((0.356).toExponential(1) === "3.6e-1");
24 assert((0.0000356).toExponential(2) === "3.56e-5");
25 assert((0.000030056).toExponential(2) === "3.01e-5");
26 assert(Infinit
[all...]
H A Dstring-prototype-charat.js26 assert(Object.getOwnPropertyDescriptor(String.prototype.charAt, 'length').configurable === length_configurable());
28 assert(Object.getOwnPropertyDescriptor(String.prototype.charAt, 'length').enumerable === false);
30 assert(Object.getOwnPropertyDescriptor(String.prototype.charAt, 'length').writable === false);
32 assert(String.prototype.charAt.length === 1);
35 assert(String.prototype.charAt.call(new String()) === "");
38 assert("hello world!".charAt(NaN) === "h");
41 assert(String.prototype.charAt.call({}) === "[");
44 assert("hello world!".charAt(0) === "h");
46 assert("hello world!".charAt(1) === "e");
49 assert("hell
[all...]
H A Djson-parse.js27 assert (false);
33 assert (JSON.parse (str) === null);
35 assert (JSON.parse (str) === true);
37 assert (JSON.parse (str) === false);
39 assert (JSON.parse (str) == -3250);
41 assert (JSON.parse (str) == "str");
43 assert (JSON.parse (str) === "\b\f\n\t\r");
46 assert (JSON.parse (str) === "\x00\x1f");
48 assert (JSON.parse (str) === "\ud801\udc00\ud801\udc00\ud801\udc00\ud801\udc00");
51 assert (JSO
[all...]
/third_party/skia/third_party/externals/harfbuzz/src/
H A Dtest-number.cc39 assert (hb_parse_int (&pp, end, &pv)); in main()
40 assert (pv == 123); in main()
41 assert (pp - str == 3); in main()
42 assert (end - pp == 0); in main()
43 assert (!*end); in main()
52 assert (hb_parse_uint (&pp, end, &pv)); in main()
53 assert (pv == 123); in main()
54 assert (pp - str == 3); in main()
55 assert (end - pp == 0); in main()
56 assert (!*en in main()
[all...]
H A Dtest-vector.cc40 assert (v1.length == 2); in main()
41 assert (v1[0] == 1); in main()
42 assert (v1[1] == 2); in main()
43 assert (v2.length == 2); in main()
44 assert (v2[0] == 1); in main()
45 assert (v2[1] == 2); in main()
53 assert (v1.length == 2); in main()
54 assert (v1[0] == 1); in main()
55 assert (v1[1] == 2); in main()
56 assert (v in main()
[all...]
/third_party/node/test/parallel/
H A Dtest-assert-async.js3 const assert = require('assert');
30 // Test assert.rejects() and assert.doesNotReject() by checking their
33 // Check `assert.rejects`.
35 const rejectingFn = async () => assert.fail();
42 // `assert.rejects` accepts a function or a promise
44 promises.push(assert.rejects(rejectingFn, errObj));
45 promises.push(assert.rejects(rejectingFn(), errObj));
53 promises.push(assert
[all...]
/third_party/jerryscript/tests/jerry/es2015/
H A Dproxy_call.js29 assert (false);
31 assert (e == 42);
39 assert (false);
41 assert (e instanceof TypeError);
56 assert (sum (1, 2) === 3);
57 assert (proxy1 (1, 2) === 30);
63 assert (false)
65 assert (e instanceof TypeError)
71 assert (false)
73 assert (
[all...]
H A Dset.js18 assert (set.size === 0);
19 assert (set.add (int) === set);
20 assert (set.has (int));
21 assert (set.size === 1);
24 assert (set.add (str) === set);
25 assert (set.has (str));
26 assert (set.size === 2);
29 assert (set.add (number) === set);
30 assert (set.has (number));
31 assert (se
[all...]
H A Dclass.js19 assert(false);
25 assert(false);
36 assert (false);
42 assert(false);
61 assert(eval("class A {}") === undefined);
62 assert(eval("var a = class A {}") === undefined);
63 assert(eval("var a = class {}") === undefined);
64 assert(eval("class A { ; ; ; ;;;;;;;;;;;; ; ; ;;;;;;;;;;;;;;;;;;;;;;;;; }") === undefined);
65 assert(eval('class A {"constructor"() {} }') === undefined);
66 assert(isNa
[all...]
H A Darray-pattern.js18 assert (false);
20 assert (e instanceof SyntaxError);
25 assert (actual.length === expected.length);
28 assert (actual[i] === expected[i]);
35 assert (false);
37 assert (e instanceof TypeError);
85 assert (red === "one");
86 assert (yellow === "two");
87 assert (green === "three");
95 assert (
[all...]
/third_party/protobuf/php/tests/
H A Dtest_util.php216 assert('-43' === $m->getOptionalInt64());
217 assert('43' === $m->getOptionalUint64());
218 assert('-45' === $m->getOptionalSint64());
219 assert('47' === $m->getOptionalFixed64());
220 assert('-47' === $m->getOptionalSfixed64());
222 assert(-43 === $m->getOptionalInt64());
223 assert(43 === $m->getOptionalUint64());
224 assert(-45 === $m->getOptionalSint64());
225 assert(47 === $m->getOptionalFixed64());
226 assert(
[all...]
/third_party/node/test/common/
H A Dreport.js2 const assert = require('assert');
30 assert.strictEqual(end, report.length - 1);
74 assert(Object.hasOwn(report, section));
75 assert(typeof report[section] === 'object' && report[section] !== null);
82 assert.strictEqual(actual, expect);
84 assert(actual);
108 assert.strictEqual(header.reportVersion, 3); // Increment as needed.
109 assert.strictEqual(typeof header.event, 'string');
110 assert
[all...]
/third_party/node/test/internet/
H A Dtest-dns.js28 const assert = require('assert');
68 assert.strictEqual(typeof req, 'object');
76 assert.strictEqual(err.code, 'EINVAL');
77 assert.strictEqual(getSystemErrorName(err.errno), 'EINVAL');
80 assert.throws(() => {
88 assert.ok(result.length > 0);
91 assert.strictEqual(typeof item, 'object');
92 assert.strictEqual(typeof item.ttl, 'number');
93 assert
[all...]

Completed in 7 milliseconds

12345678910>>...458