def test_MAX(): result = func.MAX(series, timeperiod=4) i = np.where(~np.isnan(result))[0][0] assert_equals(len(series), len(result)) assert_equals(result[i + 2], 95.090) assert_equals(result[i + 3], 95.090) assert_equals(result[i + 4], 94.620) assert_equals(result[i + 5], 94.620)
def test_MAX(): result = func.MAX(series, timeperiod=4) i = np.where(~np.isnan(result))[0][0] assert len(series) == len(result) assert result[i + 2] == 95.090 assert result[i + 3] == 95.090 assert result[i + 4] == 94.620 assert result[i + 5] == 94.620