Skip to content

Commit

Permalink
Fix tests broken by sample changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
rcrowley committed Jan 14, 2014
1 parent 320b17d commit 6fa35ed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions histogram_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ func testHistogram10000(t *testing.T, h Histogram) {
if mean := h.Mean(); 5000.5 != mean {
t.Errorf("h.Mean(): 5000.5 != %v\n", mean)
}
if stdDev := h.StdDev(); 2886.8956799071675 != stdDev {
t.Errorf("h.StdDev(): 2886.8956799071675 != %v\n", stdDev)
if stdDev := h.StdDev(); 2886.751331514372 != stdDev {
t.Errorf("h.StdDev(): 2886.751331514372 != %v\n", stdDev)
}
ps := h.Percentiles([]float64{0.5, 0.75, 0.99})
if 5000.5 != ps[0] {
Expand Down
4 changes: 2 additions & 2 deletions timer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ func TestTimerExtremes(t *testing.T) {
tm := NewTimer()
tm.Update(math.MaxInt64)
tm.Update(0)
if stdDev := tm.StdDev(); 6.521908912666392e18 != stdDev {
t.Errorf("tm.StdDev(): 6.521908912666392e18 != %v\n", stdDev)
if stdDev := tm.StdDev(); 4.611686018427388e+18 != stdDev {
t.Errorf("tm.StdDev(): 4.611686018427388e+18 != %v\n", stdDev)
}
}

Expand Down

0 comments on commit 6fa35ed

Please sign in to comment.