Add concat.

This commit is contained in:
David Braun 2017-11-28 13:28:02 -05:00
parent 1ba41d0f53
commit 46bb4c371b
No known key found for this signature in database
GPG key ID: 5694EEC4D129BDCF
3 changed files with 36 additions and 0 deletions

View file

@ -213,6 +213,15 @@ describe(`Channel object`, function() {
});
});
it(`concat`, async function() {
assert.deepEqual(
await Channel.of(0, 1, 2)
.concat(Channel.of(3, 4, 5), 6)
.values(),
[0, 1, 2, 3, 4, 5, 6]
);
});
it(`every`, async function() {
const even = number => number % 2 === 0;
assert(!await Channel.of(0, 1, 2).every(even));