test: increased externalized string length

PR-URL: https://github.com/nodejs/node/pull/36451
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
pull/36448/head
Shelley Vohr 2020-12-08 20:21:03 -08:00
parent 78d1f8db5d
commit 7c702f8db6
No known key found for this signature in database
GPG Key ID: F13993A75599653C
1 changed files with 4 additions and 4 deletions

View File

@ -40,7 +40,7 @@ const constants = fs.constants;
common.allowGlobals(externalizeString, isOneByteString, x);
{
const expected = 'ümlaut eins'; // Must be a unique string.
const expected = 'ümlaut sechzig'; // Must be a unique string.
externalizeString(expected);
assert.strictEqual(isOneByteString(expected), true);
const fd = fs.openSync(fn, 'w');
@ -50,7 +50,7 @@ common.allowGlobals(externalizeString, isOneByteString, x);
}
{
const expected = 'ümlaut zwei'; // Must be a unique string.
const expected = 'ümlaut neunzig'; // Must be a unique string.
externalizeString(expected);
assert.strictEqual(isOneByteString(expected), true);
const fd = fs.openSync(fn, 'w');
@ -60,7 +60,7 @@ common.allowGlobals(externalizeString, isOneByteString, x);
}
{
const expected = '中文 1'; // Must be a unique string.
const expected = 'Zhōngwén 1'; // Must be a unique string.
externalizeString(expected);
assert.strictEqual(isOneByteString(expected), false);
const fd = fs.openSync(fn, 'w');
@ -70,7 +70,7 @@ common.allowGlobals(externalizeString, isOneByteString, x);
}
{
const expected = '中文 2'; // Must be a unique string.
const expected = 'Zhōngwén 2'; // Must be a unique string.
externalizeString(expected);
assert.strictEqual(isOneByteString(expected), false);
const fd = fs.openSync(fn, 'w');