Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
overlookmotel committed Jul 23, 2018
1 parent 466d3a8 commit 9ebf3b2
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/all.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,20 @@ describe('piped', function() {

runPipeTests(gen);
});

describe('with 10MB data handcoded generator', function() {
function gen() {
let i = 0;
return {
next: () => {
if (i == 10 * 1000 * 1000) return {value: undefined, done: true};
return {value: i++ % 256, done: false};
}
};
}

runPipeTests(gen);
});
});

function runPipeTests(gen) {
Expand Down

0 comments on commit 9ebf3b2

Please sign in to comment.