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); }
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); }
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); }