Skip to content

Commit c824fa3

Browse files
committed
histogram: test getBinSpanLabelRound for zero gaps
1 parent 6103fce commit c824fa3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/jasmine/tests/histogram_test.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1365,6 +1365,10 @@ describe('getBinSpanLabelRound', function() {
13651365
_test(500, 500, [4500, 9500, 14500], false, [5000, 9000, 10000, 14000]);
13661366
});
13671367

1368+
it('works when gaps are zero', function() {
1369+
_test(0, 0, [-0.5, 4.5, 9.5], false, [-0.5, 4.5, 4.5, 9.5]);
1370+
});
1371+
13681372
var jan17 = Date.UTC(2017, 0, 1);
13691373
var feb17 = Date.UTC(2017, 1, 1);
13701374
var mar17 = Date.UTC(2017, 2, 1);

0 commit comments

Comments
 (0)