func TestCountingCount(t *testing.T) {
	f := NewDefaultCountingBloomFilter(100, 0.1)
	for i := 0; i < 10; i++ {
		f.Add([]byte(strconv.Itoa(i)))
	}
	for i := 0; i < 5; i++ {
		f.TestAndRemove([]byte(strconv.Itoa(i)))
	}
	if count := f.Count(); count != 5 {
		t.Errorf("Expected 5, got %d", count)
	}
}
Ensures that Count returns the number of items added to the filter.
package boom
import (
	"strconv"
	"testing"
)
func TestCountingCapacity(t *testing.T) {
	f := NewDefaultCountingBloomFilter(100, 0.1)
	if capacity := f.Capacity(); capacity != 480 {
		t.Errorf("Expected 480, got %d", capacity)
	}
}
func TestCountingK(t *testing.T) {
	f := NewDefaultCountingBloomFilter(100, 0.1)
	if k := f.K(); k != 4 {
		t.Errorf("Expected 4, got %d", k)
	}
}