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 <[email protected]>
Reviewed-By: Franziska Hinkelmann <[email protected]>
Reviewed-By: Gireesh Punathil <[email protected]>
  • Loading branch information
codebytere authored and targos committed Dec 21, 2020
1 parent 58319d5 commit acd78d9
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 acd78d9

Please sign in to comment.