Ejemplo n.º 1
0
        public void BitNot_pos()
        {
            uint digit1 = 0xACACACAC;
            uint digit2 = 0xCACACACA;

            BigInteger x = new BigInteger(1, new uint[] { digit1, digit2, 0 });

            uint d0 = digit1;
            uint d1 = digit2 ;
            uint d2 = 1;

            BigInteger z = new BigInteger(-1, new uint[] { d0, d1, d2 });
            BigInteger w = x.OnesComplement();

            Expect(w == z);
        }