05a37e0353e7055319cc7ea59ff4a32104e42775,dit/inference/tests/test_segmentaxis.py,,test_sa5,#,64
Before Change
a = np.arange(5)
sa = segment_axis(a, 5, 0, end="wrap")
sa_correct = np.array([[0, 1, 2, 3, 4]])
assert np.all(sa == sa_correct)
def test_sa6():
After Change
Test bad wrapping.
a = np.arange(5)
with pytest.raises(ValueError):
sa = segment_axis(a, 10, 0, end="cut")
def test_sa6():
Test exceptions.
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: dit/dit
Commit Name: 05a37e0353e7055319cc7ea59ff4a32104e42775
Time: 2018-01-26
Author: ryangregoryjames@gmail.com
File Name: dit/inference/tests/test_segmentaxis.py
Class Name:
Method Name: test_sa5
Project Name: pandas-dev/pandas
Commit Name: ff628b17ccfcaf14ceefeb438aafa56d3849937c
Time: 2021-01-19
Author: jorisvandenbossche@gmail.com
File Name: pandas/tests/frame/test_ufunc.py
Class Name:
Method Name: test_binary_input_aligns_columns
Project Name: pandas-dev/pandas
Commit Name: ff628b17ccfcaf14ceefeb438aafa56d3849937c
Time: 2021-01-19
Author: jorisvandenbossche@gmail.com
File Name: pandas/tests/frame/test_ufunc.py
Class Name:
Method Name: test_binary_input_aligns_index