From 5159389e08fb987edf3f320ab70c2b15b63297a5 Mon Sep 17 00:00:00 2001 From: Daniel Lemire Date: Sun, 12 Aug 2018 09:53:47 -0400 Subject: [PATCH] Removing nonsensical test. It assumes that we are going to run out of memory, get a panic and fallback on creating an empty bitset. Yet on 32-bit machines, the memory allocation may well work. --- bitset_test.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/bitset_test.go b/bitset_test.go index 8a2297e..3713185 100644 --- a/bitset_test.go +++ b/bitset_test.go @@ -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) {