Skip to content

Commit

Permalink
Removing nonsensical test. It assumes that we are going to run out of…
Browse files Browse the repository at this point in the history
… memory, get a panic and

fallback on creating an empty bitset. Yet on 32-bit machines, the memory allocation may well work.
  • Loading branch information
lemire committed Aug 12, 2018
1 parent 27622cc commit 5159389
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions bitset_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1014,14 +1014,6 @@ func TestWordsNeededLong(t *testing.T) {
}
}

func TestNewPanic(t *testing.T) {
n := New(Cap())
if n.length != 0 {
t.Error("Unexpected value: ", n.length)
return
}
}

func TestTestTooLong(t *testing.T) {
b := new(BitSet)
if b.Test(1) {
Expand Down

0 comments on commit 5159389

Please sign in to comment.