Home
last modified time | relevance | path

Searched refs:mixedByteStringUcs2 (Results 1 – 2 of 2) sorted by relevance

/third_party/node/test/parallel/
Dtest-buffer-includes.js150 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'));
Dtest-buffer-indexof.js197 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'));