Ejemplo n.º 1
0
        public void reverseBits2()
        {
            //Arrange
            uint n        = 4294967293;
            uint expected = 3221225471;

            //Act
            Solution190 s      = new Solution190();
            uint        actual = s.reverseBits(n);

            //Assert
            Assert.Equal(expected, actual);
        }
Ejemplo n.º 2
0
        public void reverseBits1()
        {
            //Arrange
            uint n        = 43261596;
            uint expected = 964176192;

            //Act
            Solution190 s      = new Solution190();
            uint        actual = s.reverseBits(n);

            //Assert
            Assert.Equal(expected, actual);
        }