Functional API: Fix off-by-one bug.

This commit is contained in:
David Braun 2017-10-17 20:18:38 -04:00
parent 10f06d08fd
commit 1b1192c0e7
2 changed files with 7 additions and 3 deletions

View file

@ -129,6 +129,10 @@ describe(`Channel`, function() {
});
describe(`functional interface`, async function() {
it(`shift`, async function() {
assert.equal(await Channel.shift(Channel.of(0)), 0);
});
describe(`slice`, function() {
it(`full application`, async function() {
assert.deepEqual(