Skip to content

Commit

Permalink
added stepping stone test for flatten
Browse files Browse the repository at this point in the history
  • Loading branch information
kolodny committed Jun 22, 2015
1 parent f6f8780 commit 933a46c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions flatten/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ describe('flatten', function() {
assert.notEqual(flatten(arr), arr);
});

it('will flatten an simple array', function() {
assert.deepEqual(flatten([1, 2, 3, 4, [5]]), [1, 2, 3, 4, 5]);
});

it('will flatten an array', function() {
assert.deepEqual(flatten(arr), [1, 2, 3, 4, 5]);
});
Expand Down

0 comments on commit 933a46c

Please sign in to comment.