Skip to content

Commit

Permalink
test: increased externalized string length
Browse files Browse the repository at this point in the history
PR-URL: #36451
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
  • Loading branch information
codebytere authored and targos committed May 1, 2021
1 parent 08ed233 commit 44603b7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/parallel/test-fs-write.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand All @@ -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');
Expand All @@ -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');
Expand All @@ -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');
Expand Down

0 comments on commit 44603b7

Please sign in to comment.