File GoLLRB-weekly-fixes.patch of Package go-GoLLRB

diff -ru a/llrb/llrb_test.go b/llrb/llrb_test.go
--- a/llrb/llrb_test.go	2011-12-13 16:36:36.000000000 +0100
+++ b/llrb/llrb_test.go	2011-12-13 16:38:46.025576783 +0100
@@ -6,7 +6,7 @@
 
 import (
 	"math"
-	"rand"
+	"math/rand"
 	"testing"
 )
 
@@ -180,7 +180,7 @@
 	}
 	avg, _ := tree.HeightStats()
 	expAvg := math.Log2(float64(n)) - 1.5
-	if math.Fabs(avg-expAvg) >= 2.0 {
+	if math.Abs(avg-expAvg) >= 2.0 {
 		t.Errorf("too much deviation from expected average height")
 	}
 }
openSUSE Build Service is sponsored by