Skip to content

Commit

Permalink
include Nothing in tests for S.join
Browse files Browse the repository at this point in the history
  • Loading branch information
davidchambers committed Jan 21, 2017
1 parent d013dbc commit 10b59c0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/join.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ test('join', function() {
eq(S.join([[[]]]), [[]]);
eq(S.join([[1], [2], [3]]), [1, 2, 3]);
eq(S.join([[[1, 2, 3]]]), [[1, 2, 3]]);
eq(S.join(S.Nothing), S.Nothing);
eq(S.join(S.Just(S.Nothing)), S.Nothing);
eq(S.join(S.Just(S.Just(1))), S.Just(1));
eq(S.join(S.Just(S.Just(S.Just(1)))), S.Just(S.Just(1)));

Expand Down

0 comments on commit 10b59c0

Please sign in to comment.