Skip to content

Commit

Permalink
test coverage for the non-object case
Browse files Browse the repository at this point in the history
  • Loading branch information
James Halliday committed Dec 21, 2013
1 parent 41ac40e commit abd3358
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/cmp.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,15 @@ test('strict equal', function (t) {
t.end();
});

test('non-objects', function (t) {
t.ok(equal(3, 3));
t.ok(equal('beep', 'beep'));
t.ok(equal('3', 3));
t.notOk(equal('3', 3, { strict: true }));
t.notOk(equal('3', [3]));
t.end();
});

test('arguments class', function (t) {
t.ok(equal(
(function(){return arguments})(1,2,3),
Expand Down

0 comments on commit abd3358

Please sign in to comment.