Skip to content

Commit

Permalink
Formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
mbostock committed Sep 2, 2019
1 parent cdd3452 commit 18ea228
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions test/sequential-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,14 +105,12 @@ tape("scaleSequential.interpolator(interpolator) sets the interpolator", functio
test.end();
});


tape("scaleSequentialQuantile() clamps", function(test) {
// (identity interpolator)
var s = scale.scaleSequentialQuantile().domain([0,1,2,3,10]);
test.equal(s(-1), 0);
var s = scale.scaleSequentialQuantile().domain([0, 1, 2, 3, 10]);
test.equal(s(-1), 0);
test.equal(s(0), 0);
test.equal(s(1), 0.25);
test.equal(s(10), 1);
test.equal(s(20), 1);
test.equal(s(1), 0.25);
test.equal(s(10), 1);
test.equal(s(20), 1);
test.end();
});

0 comments on commit 18ea228

Please sign in to comment.