- no platform dependency in sync.go
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user