Skip to content

Commit

Permalink
[Tests] add test cases from #4.
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Dec 12, 2015
1 parent 0f28648 commit 3d65d78
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/native.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,10 @@ test('objects', function (t) {

st.notOk(isEqual({ a: 42, b: 0 }, { a: 42 }), 'first hash missing a key is not equal');
st.notOk(isEqual({ a: 42 }, { a: 42, b: 0 }), 'second hash missing a key is not equal');

st.notOk(isEqual({ a: 1 }, { a: 2 }), 'two objects with equal keys but inequal values are not equal');
st.notOk(isEqual({ c: 1 }, { a: 1 }), 'two objects with inequal keys but same values are not equal');
st.end();
});

t.test('key ordering', function (st) {
Expand Down

0 comments on commit 3d65d78

Please sign in to comment.