Codebase list golang-github-beorn7-perks / e7f67b5
Use 1000000 instead of 1e6 for int constant Signed-off-by: Bjoern Rabenstein <bjoern@rabenste.in> Bjoern Rabenstein 4 years ago
1 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
55 )
66
77 func TestHistogram(t *testing.T) {
8 const numPoints = 1e6
8 const numPoints = 1000000
99 const maxBins = 3
1010
1111 h := New(maxBins)
2424 }
2525
2626 if g := count(h.Bins()); g != numPoints {
27 t.Fatalf("binned %d points, wanted %f", g, numPoints)
27 t.Fatalf("binned %d points, wanted %d", g, numPoints)
2828 }
2929 }
3030