增加test

This commit is contained in:
knight0zh
2022-08-16 15:42:04 +08:00
parent cf230fab81
commit c04856847f
3 changed files with 78 additions and 6 deletions

View File

@@ -139,7 +139,7 @@ func BenchmarkGridManger(b *testing.B) {
manger.Add(&Entity{
X: float64(rand.Intn(5) * 10),
Y: float64(rand.Intn(5) * 10),
Name: fmt.Sprintf("name%d", rand.Intn(50)),
Name: fmt.Sprintf("player%d", rand.Intn(50)),
})
wg.Done()
}()
@@ -148,7 +148,7 @@ func BenchmarkGridManger(b *testing.B) {
manger.Delete(&Entity{
X: float64(rand.Intn(5) * 10),
Y: float64(rand.Intn(5) * 10),
Name: fmt.Sprintf("name%d", rand.Intn(50)),
Name: fmt.Sprintf("player%d", rand.Intn(50)),
})
wg.Done()
}()