Skip to content
This repository has been archived by the owner on Mar 25, 2022. It is now read-only.

Commit

Permalink
Make tests more consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
rowanmanning committed Jun 29, 2013
1 parent b0f0a8e commit 5683136
Showing 1 changed file with 6 additions and 14 deletions.
20 changes: 6 additions & 14 deletions test/unit/proclaim.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,20 +202,12 @@
d = /hello/i,
e = new RegExp('hello', 'i');

assert.doesNotThrow(function () {
proclaim.deepEqual(a, a);
});

assert.throws(function () {
proclaim.deepEqual(a, b);
proclaim.deepEqual(a, c);
proclaim.deepEqual(a, d);
proclaim.deepEqual(a, e);
});

assert.doesNotThrow(function () {
proclaim.deepEqual(d, e);
});
assert.doesNotThrow(function () { proclaim.deepEqual(a, a); });
assert.doesNotThrow(function () { proclaim.deepEqual(d, e); });
assert.throws(function () { proclaim.deepEqual(a, b); });
assert.throws(function () { proclaim.deepEqual(a, c); });
assert.throws(function () { proclaim.deepEqual(a, d); });
assert.throws(function () { proclaim.deepEqual(a, e); });
});
});

Expand Down

0 comments on commit 5683136

Please sign in to comment.