generator: verified
This commit is contained in:
@@ -63,8 +63,8 @@ func TestRandomFreePoint(t *testing.T) {
|
||||
}
|
||||
|
||||
_, _, err = p.RandomFreePoint(0)
|
||||
if err == nil {
|
||||
t.Error("expect: error when radius not positive, got: none")
|
||||
if err != nil {
|
||||
t.Errorf("expect: no error when radius is zero, got: %s", err)
|
||||
}
|
||||
|
||||
_, _, err = p.RandomFreePoint(float32(w + h)) // guaranteed to mark whole area dead zone
|
||||
|
||||
Reference in New Issue
Block a user