def Test_Case_15(self): array = [1, 2, -1, -2, -5] expected = False actual = isMonotonic(array) self.assertEqual(actual, expected)
def Test_Case_14(self): array = [-1, -1, -1, -1, -1, -1, -1, -1] expected = True actual = isMonotonic(array) self.assertEqual(actual, expected)
def Test_Case_13(self): array = [-1, -1, -2, -3, -4, -5, -5, -5, -6, -7, -8, -8, -9, -10, -11] expected = True actual = isMonotonic(array) self.assertEqual(actual, expected)
def Test_Case_11(self): array = [1, 1, 2, 3, 4, 5, 5, 5, 6, 7, 8, 8, 9, 10, 11] expected = True actual = isMonotonic(array) self.assertEqual(actual, expected)
def Test_Case_1(self): array = [-1, -5, -10, -1100, -1100, -1101, -1102, -9001] expected = True actual = isMonotonic(array) self.assertEqual(actual, expected)
def Test_Case_6(self): array = [1, 5, 10, 1100, 1101, 1102, 9001] expected = True actual = isMonotonic(array) self.assertEqual(actual, expected)