Ejemplo n.º 1
0
        public virtual void SetMethodDoesntMutateLength()
        {
            RLEBitset testSet = (RLEBitset)RLEBitset.CreateFrom(new int[] { }, TEST_SET_LENGTH);

            testSet.Set(0, true);
            testSet.Set(1, false);
            Assert.Equal(TEST_SET_LENGTH, testSet.Length());
        }
Ejemplo n.º 2
0
 protected override IBitset CreateSetFromIndices(int[] indices, int length)
 {
     return(RLEBitset.CreateFrom(indices, length));
 }