예제 #1
0
		void doNextSetBit(BitArray a, FixedBitSet b)
		{
			int aa = -1, bb = -1;
			do
			{
				aa = a.NextSetBit(aa + 1);
				bb = bb < b.Length() - 1 ? b.NextSetBit(bb + 1) : -1;
				Assert.AreEqual(aa, bb);
			} while (aa >= 0);
		}
예제 #2
0
 internal virtual void DoNextSetBit(BitArray a, LongBitSet b)
 {
     int aa = -1;
     long bb = -1;
     do
     {
         aa = a.NextSetBit(aa + 1);
         bb = bb < b.Length() - 1 ? b.NextSetBit(bb + 1) : -1;
         Assert.AreEqual(aa, bb);
     } while (aa >= 0);
 }