Ejemplo n.º 1
0
            private int SizeTest()
            {
                int s = expected.Size();

                Assert.Equal(s, gset.Size());
                return(s);
            }
Ejemplo n.º 2
0
            private int SizeTest()
            {
                int c = cache.Size();

                Assert.True(hashMap.Size() >= c);
                return(c);
            }
Ejemplo n.º 3
0
 internal GSetTestCase(int tablelength, int datasize, int modulus)
 {
     denominator = Math.Min((datasize >> 7) + 1, 1 << 16);
     info        = GetType().Name + ": tablelength=" + tablelength + ", datasize=" + datasize
                   + ", modulus=" + modulus + ", denominator=" + denominator;
     Println(info);
     data = new TestGSet.IntData(datasize, modulus);
     gset = new LightWeightGSet <TestGSet.IntElement, TestGSet.IntElement>(tablelength);
     Assert.Equal(0, gset.Size());
 }