Example #1
0
        public void MyPowTest9()
        {
            var qq = new MyPowTask().MyPow(-2, 2);

            Assert.AreEqual(4, qq);
        }
Example #2
0
        public void MyPowTest7()
        {
            var qq = new MyPowTask().MyPow(-1, 2147483647);

            Assert.AreEqual(-1, qq);
        }
Example #3
0
        public void MyPowTest8()
        {
            var qq = new MyPowTask().MyPow(0.44528, 0);

            Assert.AreEqual(1, qq);
        }
Example #4
0
        public void MyPowTest6()
        {
            var qq = new MyPowTask().MyPow(2, -2147483648);

            Assert.AreEqual(0, qq);
        }
Example #5
0
        public void MyPowTest4()
        {
            var qq = new MyPowTask().MyPow(0.00001, 2147483647);

            Assert.AreEqual(0, qq);
        }
Example #6
0
        public void MyPowTest3()
        {
            var qq = new MyPowTask().MyPow(2.1, 3);

            Assert.AreEqual(9.261, qq, 0.0000000001);
        }
Example #7
0
        public void MyPowTest2()
        {
            var qq = new MyPowTask().MyPow(2, -2);

            Assert.AreEqual(0.25, qq);
        }
Example #8
0
        public void MyPowTest()
        {
            var qq = new MyPowTask().MyPow(2, 10);

            Assert.AreEqual(1024, qq);
        }