Skip to content

Commit

Permalink
some tests were wrong, regexp test rightly still fails
Browse files Browse the repository at this point in the history
  • Loading branch information
James Halliday committed Jun 3, 2011
1 parent b423996 commit b9d1110
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/equal.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,24 +37,24 @@ exports.deepInstances = function () {
'boolean instances are not real booleans'
));

assert.ok(traverse.deepEqual(
assert.ok(!traverse.deepEqual(
[ new String('x') ], [ 'x' ],
'string instances are not real strings'
));

assert.ok(traverse.deepEqual(
assert.ok(!traverse.deepEqual(
[ new Number(4) ], [ 4 ],
'number instances are not real numbers'
));

assert.ok(traverse.deepEqual(
[ new Regexp('x') ]
[ new RegExp('x') ]
[ /x/ ],
'regexp instances are real regexps'
));

assert.ok(!traverse.deepEqual(
[ new Regexp(/./) ]
[ new RegExp(/./) ]
[ /../ ],
'these regexps aren\'t the same'
));
Expand Down

0 comments on commit b9d1110

Please sign in to comment.