Skip to content

Commit

Permalink
and another test just in case for non-root circular ref checks
Browse files Browse the repository at this point in the history
  • Loading branch information
James Halliday committed Jun 3, 2011
1 parent 04e5492 commit a914717
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/equal.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,13 @@ exports.deepCircular = function () {
traverse.deepEqual(a, c),
'circular refs are structurally the same here'
);

var d = [1];
d.push(a); // c = [ 1, [ 1, *d ] ]
assert.ok(
traverse.deepEqual(b, d),
'non-root circular ref structural comparison'
);
};

exports.deepInstances = function () {
Expand Down

0 comments on commit a914717

Please sign in to comment.