def test_monotonic(): pos = np.array([1, 2, 3, 5]) assert panelm._monotonic(pos) neg = np.array([1, 2, 3, 4, 3]) assert not panelm._monotonic(neg) neg2 = np.array([5, 1, 2, 3, 4, 5]) assert not panelm._monotonic(neg2)
def test_monotonic(): pos = np.array([1, 2, 3, 5]) assert panelm._monotonic(pos) neg = np.array([1, 2, 3, 4, 3]) assert not panelm._monotonic(neg) neg2 = np.array([5, 1, 2, 3, 4, 5]) assert not panelm._monotonic(neg2)