Be more like a library to support mobile (#247)

This commit is contained in:
Nathan Brown 2020-06-30 13:48:58 -05:00 committed by GitHub
parent 1ea8847085
commit 41578ca971
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
21 changed files with 477 additions and 69 deletions

View file

@ -212,10 +212,10 @@ func TestBitsLostCounter(t *testing.T) {
func BenchmarkBits(b *testing.B) {
z := NewBits(10)
for n := 0; n < b.N; n++ {
for i, _ := range z.bits {
for i := range z.bits {
z.bits[i] = true
}
for i, _ := range z.bits {
for i := range z.bits {
z.bits[i] = false
}