Use 1000000 instead of 1e6 for int constant
Signed-off-by: Bjoern Rabenstein <bjoern@rabenste.in>
Bjoern Rabenstein
4 years ago
5 | 5 | ) |
6 | 6 | |
7 | 7 | func TestHistogram(t *testing.T) { |
8 | const numPoints = 1e6 | |
8 | const numPoints = 1000000 | |
9 | 9 | const maxBins = 3 |
10 | 10 | |
11 | 11 | h := New(maxBins) |
24 | 24 | } |
25 | 25 | |
26 | 26 | 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) | |
28 | 28 | } |
29 | 29 | } |
30 | 30 |