/third_party/jerryscript/tests/jerry/es2015/ |
H A D | tagged-template-literal.js | 22 assert(strings[0] == "That "); 23 assert(strings[1] == " is a "); 38 assert(output === "That Mike is a youngster"); 53 assert(t1Closure('Y', 'A') === "YAY!"); 55 assert(t2Closure('Hello', {foo: 'World'}) === "Hello World!"); 60 assert(strings.raw[0].length === 40); 66 assert (String.raw`Hi\n${2+3}!` === "Hi\\n5!"); 70 assert(strings.length === 4); 71 assert(strings.raw.length === 4); 72 assert(param [all...] |
H A D | new-target.js | 17 assert (new.target === undefined); 25 assert (demo () === undefined); 26 assert ((new demo ()) === demo); 31 assert (false); 33 assert (ex instanceof SyntaxError); 39 assert (false); 41 assert (ex instanceof SyntaxError); 47 assert (new.target === arrow); 49 assert (mth () === arrow); 54 assert (arrow_calle [all...] |
H A D | function-param-init2.js | 19 assert(a() === 2); 20 assert(b === 1) 28 eval("assert(a() === 2)"); 29 eval("assert(b === 1)"); 35 assert(x === undefined); 37 assert(a === 1); 38 assert(x === 2); 51 assert(a === 2); 52 assert(x() === 5); 53 assert( [all...] |
H A D | function-pattern2.js | 15 assert((function([a], b, {c}) {}).length === 3); 19 assert(a === "a"); 20 assert(b === "b"); 21 assert(c === "z"); 27 assert(a === 1); 28 assert(b === 5); 34 assert(a === 3); 35 assert(b === 5); 41 assert(a === 42); 42 assert( [all...] |
H A D | array-isarray.js | 15 assert(Array.isArray([]) === true); 16 assert(Array.isArray([1]) === true); 17 assert(Array.isArray(new Array()) === true); 18 assert(Array.isArray(new Array('a', 'b', 'c', 'd')) === true); 19 assert(Array.isArray(new Array(3)) === true); 20 assert(Array.isArray(Array.prototype) === true); 21 assert(Array.isArray(new Proxy([], {})) === true); 23 assert(Array.isArray() === false); 24 assert(Array.isArray({}) === false); 25 assert(Arra [all...] |
H A D | weakset.js | 19 assert (m1.add (k1) instanceof WeakSet); 20 assert (m1.has (k1) === true); 25 assert (m1.has (k1) === false); 26 assert (m1.delete(k1) === false); 27 assert (m1.add (k1) instanceof WeakSet); 28 assert (m1.has (k1) === true); 30 assert (m1.delete ("str") === false); 31 assert (m1.has (42) === false); 35 assert (false); 37 assert ( [all...] |
H A D | for-of-iterator-close.js | 38 assert(close1()); 47 assert(false); 49 assert(e === 0); 54 assert(close2()); 65 assert(!close3()); 74 assert(false); 76 assert(e === 5); 81 assert(close4()); 93 assert(false); 95 assert(fals [all...] |
H A D | proxy_delete.js | 40 assert(false); 42 assert(e === 42); 55 assert(target.foo === "bar") 56 assert(proxy.foo === "bar"); 58 assert(delete proxy.foo === false); 60 assert(target.foo === undefined); 61 assert(proxy.foo === undefined); 63 assert(target.bar === undefined); 64 assert(delete proxy.bar == false); 65 assert(targe [all...] |
/third_party/protobuf/ruby/compatibility_tests/v3.0.0/tests/ |
H A D | basic.rb | 122 assert m.optional_int32 == 0 123 assert m.optional_int64 == 0 124 assert m.optional_uint32 == 0 125 assert m.optional_uint64 == 0 126 assert m.optional_bool == false 127 assert m.optional_float == 0.0 128 assert m.optional_double == 0.0 129 assert m.optional_string == "" 130 assert m.optional_bytes == "" 131 assert [all...] |
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/ |
H A D | test_lpm_map.c | 13 #include <assert.h> 60 assert(node); in tlpm_add() 134 assert(0); in tlpm_delete() 144 assert(!tlpm_match(list, (uint8_t[]){ 0xff }, 8)); in test_lpm_basic() 147 assert(t1 == tlpm_match(list, (uint8_t[]){ 0xff }, 8)); in test_lpm_basic() 148 assert(t1 == tlpm_match(list, (uint8_t[]){ 0xff, 0xff }, 16)); in test_lpm_basic() 149 assert(t1 == tlpm_match(list, (uint8_t[]){ 0xff, 0x00 }, 16)); in test_lpm_basic() 150 assert(!tlpm_match(list, (uint8_t[]){ 0x7f }, 8)); in test_lpm_basic() 151 assert(!tlpm_match(list, (uint8_t[]){ 0xfe }, 8)); in test_lpm_basic() 152 assert(!tlpm_matc in test_lpm_basic() [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/ |
H A D | test_lpm_map.c | 13 #include <assert.h> 59 assert(node); in tlpm_add() 133 assert(0); in tlpm_delete() 143 assert(!tlpm_match(list, (uint8_t[]){ 0xff }, 8)); in test_lpm_basic() 146 assert(t1 == tlpm_match(list, (uint8_t[]){ 0xff }, 8)); in test_lpm_basic() 147 assert(t1 == tlpm_match(list, (uint8_t[]){ 0xff, 0xff }, 16)); in test_lpm_basic() 148 assert(t1 == tlpm_match(list, (uint8_t[]){ 0xff, 0x00 }, 16)); in test_lpm_basic() 149 assert(!tlpm_match(list, (uint8_t[]){ 0x7f }, 8)); in test_lpm_basic() 150 assert(!tlpm_match(list, (uint8_t[]){ 0xfe }, 8)); in test_lpm_basic() 151 assert(!tlpm_matc in test_lpm_basic() [all...] |
/third_party/protobuf/ruby/tests/ |
H A D | basic_proto2.rb | 38 assert !m.has_optional_int32? 39 assert !TestMessage.descriptor.lookup('optional_int32').has?(m) 40 assert !m.has_optional_int64? 41 assert !TestMessage.descriptor.lookup('optional_int64').has?(m) 42 assert !m.has_optional_uint32? 43 assert !TestMessage.descriptor.lookup('optional_uint32').has?(m) 44 assert !m.has_optional_uint64? 45 assert !TestMessage.descriptor.lookup('optional_uint64').has?(m) 46 assert !m.has_optional_bool? 47 assert !TestMessag [all...] |
/third_party/node/test/parallel/ |
H A D | test-crypto.js | 34 const assert = require('assert'); 44 assert.throws(() => { 64 assert.throws(() => { 74 assert.throws(() => { 84 assert.throws(() => { 96 assert.throws( 106 assert(list.length > 0); 111 assert.deepStrictEqual(list, sorted); 114 assert [all...] |
H A D | test-http-agent-keepalive.js | 24 const assert = require('assert'); 59 assert.strictEqual(body.toString(), 'hello world'); 60 assert.strictEqual(agent.sockets[name].length, 1); 61 assert.strictEqual(agent.freeSockets[name], undefined); 62 assert.strictEqual(agent.totalSocketCount, 1); 68 assert.strictEqual(req.reusedSocket, true); 69 assert.strictEqual(res.statusCode, 200); 72 assert.strictEqual(agent.sockets[name].length, 1); 73 assert [all...] |
H A D | test-http-parser.js | 24 const assert = require('assert'); 67 assert.strictEqual(body, expected); 80 assert.strictEqual(versionMajor, 1); 81 assert.strictEqual(versionMinor, 1); 82 assert.strictEqual(method, methods.indexOf('GET')); 83 assert.strictEqual(url || parser.url, '/hello'); 101 assert.throws( 122 assert.strictEqual(method, undefined); 123 assert [all...] |
H A D | test-stream-readable-reading-readingMore.js | 3 const assert = require('assert'); 14 assert.strictEqual(state.reading, false); 15 assert.strictEqual(state.readingMore, false); 21 assert.strictEqual(state.readingMore, true); 24 assert.strictEqual(state.reading, !state.ended); 30 assert.strictEqual(state.readingMore, false); 31 assert.strictEqual(state.reading, false); 38 assert.strictEqual(state.readingMore, expectedReadingMore.shift()); 41 assert [all...] |
H A D | test-readline-interface.js | 27 const assert = require('assert'); 64 assert.strictEqual(cursorPos.rows, rows); 65 assert.strictEqual(cursorPos.cols, cols); 71 assert(rl instanceof readline.Interface); 82 assert(rli instanceof readline.Interface); 95 assert.strictEqual(rli.crlfDelay, Math.max(crlfDelay || 100, 100)); 104 assert.throws(() => { 117 assert.throws(() => { 130 assert [all...] |
H A D | test-assert-deep.js | 4 const assert = require('assert'); 6 const { AssertionError } = assert; 17 // for assert.throws() 49 assert.throws( 50 () => assert.deepStrictEqual(arr, buf), 58 assert.deepEqual(arr, buf); 64 assert.throws( 65 () => assert.deepStrictEqual(buf2, buf), 78 assert [all...] |
H A D | test-internal-util-objects.js | 7 const assert = require('assert'); 16 assert.strictEqual( 20 assert.strictEqual( 24 assert.strictEqual( 28 assert.deepStrictEqual( 33 assert.throws( 37 assert.throws( 41 assert.throws( 45 assert [all...] |
H A D | test-stream-inheritance.js | 3 const assert = require('assert'); 11 assert.ok(readable instanceof Readable); 12 assert.ok(!(writable instanceof Readable)); 13 assert.ok(duplex instanceof Readable); 14 assert.ok(transform instanceof Readable); 16 assert.ok(!(readable instanceof Writable)); 17 assert.ok(writable instanceof Writable); 18 assert.ok(duplex instanceof Writable); 19 assert [all...] |
/third_party/jerryscript/tests/jerry/ |
H A D | array-prototype-indexof.js | 19 assert(index === 0); 20 assert(array[index] === "foo"); 22 assert(array.indexOf("foo", 1) === 4); 23 assert(array.indexOf("foo", 5) === -1); 26 assert(index === 6); 27 assert(array[index] === "baz"); 29 assert(array.indexOf("baz", 7) === -1); 32 assert(index === 3); 33 assert(array[index] === obj); 35 assert(arra [all...] |
H A D | math-log.js | 15 assert( isNaN (Math.log(NaN)) ); 16 assert( isNaN (Math.log (-1)) ); 17 assert( isNaN (Math.log (-Infinity)) ); 19 assert( Math.log (0) === -Infinity ); 20 assert( Math.log (1) === 0 ); 21 assert( Math.log (Infinity) === Infinity ); 22 assert( Math.log (2) >= Math.LN2 * 0.999999 ); 23 assert( Math.log (2) <= Math.LN2 * 1.000001 ); 26 assert( very_close_to_1_but_greater > 1.0 ); 28 assert( Mat [all...] |
H A D | strict2.js | 20 assert (false); 24 assert (e instanceof SyntaxError); 41 assert(eval("'use stric'\nimplements") === 0) 42 assert(eval("'use stric'\n\\u0069mplements") === 0) 46 assert(eval("'use stric'\nprivate") === 1) 47 assert(eval("'use stric'\n\\u0070rivate") === 1) 51 assert(eval("'use stric'\npublic") === 2) 52 assert(eval("'use stric'\n\\u0070ublic") === 2) 56 assert(eval("'use stric'\ninterface") === 3) 57 assert(eva [all...] |
H A D | object-literal.js | 24 assert (person.firstName === "John"); 25 assert (person["firstName"] === "John"); 26 assert (person.lastName === "Doe"); 27 assert (person["lastName"] === "Doe"); 28 assert (person.age === 50); 29 assert (person["age"] === 50); 30 assert (person.eyeColor === "blue"); 31 assert (person["eyeColor"] === "blue"); 32 assert (person.gender === "male"); 33 assert (perso [all...] |
H A D | object-get-own-property-descriptor.js | 21 assert (desc.value === 42); 22 assert (desc.configurable); 23 assert (desc.writable); 24 assert (desc.enumerable); 28 assert (desc.value === "bar"); 34 assert (desc.value === 8675309); 35 assert (!desc.configurable); 36 assert (!desc.writable); 37 assert (!desc.enumerable); 41 assert ( des [all...] |