コード例 #1
0
        public void Remove_RemovedItemIsNotPresent()
        {
            CountingBloomFilter bf = new CountingBloomFilter(10, 0.001);

            bf.Add("a");
            bf.Add("a");

            Assert.IsTrue(bf.IsPresent("a"));

            bf.Remove("a");

            Assert.IsFalse(bf.IsPresent("a"));
        }
コード例 #2
0
        public void Remove_RemovedItemIsNotPresent()
        {
            CountingBloomFilter bf = new CountingBloomFilter(10, 0.001);
            bf.Add("a");
            bf.Add("a");

            Assert.IsTrue(bf.IsPresent("a"));

            bf.Remove("a");

            Assert.IsFalse(bf.IsPresent("a"));
        }