mirror of https://github.com/nodejs/node.git
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
parent
78d1f8db5d
commit
7c702f8db6
|
@ -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');
|
||||
|
|
Loading…
Reference in New Issue