示例#1
0
        public void Problem1822_Test_3()
        {
            int[] nums = new int[] { -1, 1, -1, 1, -1 };
            int   act  = Problem1822.ArraySign(nums);
            int   exp  = -1;

            Assert.Equal(exp, act);
        }
示例#2
0
        public void Problem1822_Test_1()
        {
            int[] nums = new int[] { -1, -2, -3, -4, 3, 2, 1 };
            int   act  = Problem1822.ArraySign(nums);
            int   exp  = 1;

            Assert.Equal(exp, act);
        }
示例#3
0
        public void Problem1822_Test_2()
        {
            int[] nums = new int[] { 1, 5, 0, 2, -3 };
            int   act  = Problem1822.ArraySign(nums);
            int   exp  = 0;

            Assert.Equal(exp, act);
        }