Browse Source

common: BitArray: feedback from @adrianbrink to simplify tests

pull/1842/head
Emmanuel Odeke 7 years ago
parent
commit
85be26c675
No known key found for this signature in database GPG Key ID: 1CA47A292F89DD40
1 changed files with 2 additions and 3 deletions
  1. +2
    -3
      common/bit_array_test.go

+ 2
- 3
common/bit_array_test.go View File

@ -175,10 +175,9 @@ func TestUpdateNeverPanics(t *testing.T) {
}{ }{
{nil, nil}, {nil, nil},
{newRandBitArray(10), newRandBitArray(12)}, {newRandBitArray(10), newRandBitArray(12)},
{newRandBitArray(0), NewBitArray(10)},
{newRandBitArray(23), newRandBitArray(23)},
{newRandBitArray(37), nil},
{nil, NewBitArray(10)}, {nil, NewBitArray(10)},
{nil, newRandBitArray(64)},
{newRandBitArray(63), newRandBitArray(64)},
} }
for _, pair := range pairs { for _, pair := range pairs {


Loading…
Cancel
Save