Skip to content

Commit

Permalink
Additional isEqual test case
Browse files Browse the repository at this point in the history
Related to #97

Added to check the source of some unexpected behavior which turned out to be a mistake in the test I wrote rather than here
  • Loading branch information
pineapplemachine committed Jul 30, 2017
1 parent 22fbac2 commit 09f85d6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/core/isEqual.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,14 @@ export const isEqual = lightWrap({
hi.assert(hi.isEqual(20, 20));
hi.assert(hi.isEqual(true, true));
},
"emptyIterablesEqual": hi => {
hi.assert(hi.isEqual([], []));
hi.assert(hi.isEqual([], ""));
hi.assert(hi.isEqual("", ""));
hi.assert(hi.isEqual([], hi.emptySequence()));
hi.assert(hi.isEqual("", hi.emptySequence()));
hi.assert(hi.isEqual(hi.emptySequence(), hi.emptySequence()));
},
},
});

Expand Down

0 comments on commit 09f85d6

Please sign in to comment.