- no platform dependency in sync.go

This commit is contained in:
gazebo
2018-10-11 22:17:20 +08:00
parent 02b97909bc
commit 6133998e54
17 changed files with 152 additions and 52 deletions

View File

@@ -31,3 +31,18 @@ func TestGetPolygonFromCircle(t *testing.T) {
}
t.Log(points)
}
func TestFakeID(t *testing.T) {
id := GenFakeID()
if !IsFakeID(id) {
t.Fatalf("wrong result for id:%d", id)
}
id = 0
if !IsFakeID(id) {
t.Fatalf("wrong result for id:%d", id)
}
id = 23424234
if IsFakeID(id) {
t.Fatalf("wrong result for id:%d", id)
}
}