Skip to content

Commit

Permalink
test(xsnap): More netstring cases
Browse files Browse the repository at this point in the history
  • Loading branch information
kriskowal committed Jan 11, 2021
1 parent 3576b5c commit 3fc039d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/xsnap/test/test-netstring.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,14 @@ test('round-trip short messages', async t => {

test('round-trip varying messages', async t => {
const array = ['', 'A', 'hello'];

for (let i = 1020; i < 1030; i++) {
array.push(new Array(i).fill(':').join(''));
}
for (let i = 2040; i < 2050; i++) {
array.push(new Array(i).fill(':').join(''));
}

t.plan(array.length);

const [input, output] = pipe();
Expand Down

0 comments on commit 3fc039d

Please sign in to comment.