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: 5a7514ccb18a3a506d453dd048c665c33835ee56
Time: 2020-12-11
Author: jbrockmendel@gmail.com
File Name: pandas/tests/indexes/categorical/test_indexing.py
Class Name: TestGetIndexer
Method Name: test_get_indexer_non_unique
Project Name: keras-team/keras
Commit Name: 6fb506979a4074e3b935ce22999311c22f6dce6a
Time: 2018-09-28
Author: ybliang8@gmail.com
File Name: tests/keras/layers/advanced_activations_test.py
Class Name:
Method Name: test_relu