Beispiel #1
0
        public void Test1()
        {
            BinaryGap bg     = new BinaryGap();
            long      result = bg.getBinaryGap(20);

            Assert.Equal(1, result);
        }
Beispiel #2
0
        public void Test3()
        {
            BinaryGap bg     = new BinaryGap();
            long      result = bg.getBinaryGap(887966);

            Assert.Equal(3, result);
        }
Beispiel #3
0
        public void Test4()
        {
            BinaryGap bg     = new BinaryGap();
            long      result = bg.getBinaryGap(9999999999);

            Assert.Equal(6, result);
        }
Beispiel #4
0
        public void Test2()
        {
            BinaryGap bg     = new BinaryGap();
            long      result = bg.getBinaryGap(529);

            Assert.Equal(4, result);
        }