コード例 #1
0
def test_jitter():
    with pytest.raises(ValueError):
        helpers.jitter([1, 2, 3], 1, distribution="nonexistant")
コード例 #2
0
def test_jitter():
    helpers.jitter([1, 2, 3], 1, distribution="gaussian")
    helpers.jitter([1, 2, 3], 1, distribution="uniform")