Skip to content

Commit

Permalink
Simplify.
Browse files Browse the repository at this point in the history
  • Loading branch information
mbostock committed Jan 8, 2014
1 parent c3c2bd6 commit af76f54
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/arrays/set-test.js
Expand Up @@ -66,7 +66,7 @@ suite.addBatch({
var s = set(["foo", "bar"]),
c = [];
s.forEach(function(v) { c.push(v); });
c.sort(function(a, b) { return a.localeCompare(b); });
c.sort();
assert.deepEqual(c, ["bar", "foo"]);
},
"uses the set as the context": function(set) {
Expand All @@ -84,8 +84,8 @@ suite.addBatch({
c2 = [];
s1.forEach(function(v) { c1.push(v); });
s2.forEach(function(v) { c2.push(v); });
c1.sort(function(a, b) { return a.localeCompare(b); });
c2.sort(function(a, b) { return a.localeCompare(b); });
c1.sort();
c2.sort();
assert.deepEqual(c1, c2);
}
},
Expand Down

0 comments on commit af76f54

Please sign in to comment.