Searched refs:mixedByteStringUcs2 (Results 1 – 2 of 2) sorted by relevance
/third_party/node/test/parallel/ |
D | test-buffer-includes.js | 150 const mixedByteStringUcs2 = constant 152 assert(mixedByteStringUcs2.includes('bc', 0, 'ucs2')); 153 assert(mixedByteStringUcs2.includes('\u03a3', 0, 'ucs2')); 154 assert(!mixedByteStringUcs2.includes('\u0396', 0, 'ucs2')); 157 mixedByteStringUcs2.includes(Buffer.from('bc', 'ucs2'), 0, 'ucs2')); 159 mixedByteStringUcs2.includes(Buffer.from('\u03a3', 'ucs2'), 0, 'ucs2')); 161 !mixedByteStringUcs2.includes(Buffer.from('\u0396', 'ucs2'), 0, 'ucs2'));
|
D | test-buffer-indexof.js | 197 const mixedByteStringUcs2 = constant 199 assert.strictEqual(mixedByteStringUcs2.indexOf('bc', 0, 'ucs2'), 6); 200 assert.strictEqual(mixedByteStringUcs2.indexOf('\u03a3', 0, 'ucs2'), 10); 201 assert.strictEqual(-1, mixedByteStringUcs2.indexOf('\u0396', 0, 'ucs2')); 204 mixedByteStringUcs2.indexOf(Buffer.from('bc', 'ucs2'), 0, 'ucs2'), 6); 206 mixedByteStringUcs2.indexOf(Buffer.from('\u03a3', 'ucs2'), 0, 'ucs2'), 10); 208 -1, mixedByteStringUcs2.indexOf(Buffer.from('\u0396', 'ucs2'), 0, 'ucs2'));
|