Пример #1
0
        public void test_v3_2147483648()
        {
            int i      = -2147483648;
            var result = new reverse_integer().Reverse_V3(i);

            Assert.IsTrue(result == 0);
        }
Пример #2
0
        public void test_v3_1534236469()
        {
            int i      = 1534236469;
            var result = new reverse_integer().Reverse_V3(i);

            Assert.IsTrue(result == 0);
        }
Пример #3
0
        public void test_v3_nagetive()
        {
            int i      = -123;
            var result = new reverse_integer().Reverse_V3(i);

            Assert.IsTrue(result == -321);
        }
Пример #4
0
        public void test_v3_120()
        {
            int i      = 120;
            var result = new reverse_integer().Reverse_V3(i);

            Assert.IsTrue(result == 21);
        }
Пример #5
0
        public void test1()
        {
            int i      = 123;
            var result = new reverse_integer().Reverse(i);

            Assert.IsTrue(result == 321);
        }
Пример #6
0
        public static void Main(string[] args)
        {
            palindrome_number palindromeNumber = new palindrome_number();

            Console.WriteLine(palindromeNumber.IsPalindrome(-121));

            reverse_integer reverseInteger = new reverse_integer();

            Console.WriteLine(reverseInteger.Reverse(-121) == -121);
        }