832cd03edcdf05560d74b7605b76df2e8dc5c76c,dit/utils/tests/test_testing.py,,test_distributions1,#,17
Before Change
A test for the distributions strategy.
dists = distributions(alphabets=3)
example = find(dists, predicate)
assert coinformation(example) <= -1/2
@pytest.mark.flaky(reruns=5)
def test_distributions2():
After Change
A test for the distributions strategy.
assert entropy(dist) <= np.log2(len(dist.pmf))
@given(dist=distributions(alphabets=(2, 2)))
def test_distributions2(dist):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: dit/dit
Commit Name: 832cd03edcdf05560d74b7605b76df2e8dc5c76c
Time: 2017-11-09
Author: ryangregoryjames@gmail.com
File Name: dit/utils/tests/test_testing.py
Class Name:
Method Name: test_distributions1
Project Name: dit/dit
Commit Name: 832cd03edcdf05560d74b7605b76df2e8dc5c76c
Time: 2017-11-09
Author: ryangregoryjames@gmail.com
File Name: dit/utils/tests/test_testing.py
Class Name:
Method Name: test_distributions3
Project Name: dit/dit
Commit Name: 832cd03edcdf05560d74b7605b76df2e8dc5c76c
Time: 2017-11-09
Author: ryangregoryjames@gmail.com
File Name: dit/utils/tests/test_testing.py
Class Name:
Method Name: test_distributions2