public void TestYnosa()
        {
            Console.WriteLine("testing Ynosa");
            var a1 = new EwahCompressedBitArray();
            var a2 = new EwahCompressedBitArray();

            a1.Set(5);
            a1.Set(15);
            a2.Set(5);
            Assert.IsTrue(a1.Intersects(a2));
            Console.WriteLine("testing Ynosa:ok");
        }
        public void TestIntersectOddNess()
        {
            Console.WriteLine("testing IntersectOddNess");
            var a1 = new EwahCompressedBitArray();
            var a2 = new EwahCompressedBitArray();

            a1.Set(12);
            a2.Set(0);
            a2.Set(1);
            a2.Set(4);
            a2.Set(14);
            Assert.IsFalse(a1.Intersects(a2));
            Console.WriteLine("testing IntersectOddNess:ok");
        }
Beispiel #3
0
 public bool Intersects(IBitmap bitmap)
 {
     return(_bitmap.Intersects(((CompressedBitmap)bitmap)._bitmap));
 }