Ejemplo n.º 1
0
def test_hwep__zeros():
    assert np.isnan(hwep(0, 0, 0))
Ejemplo n.º 2
0
def test_hwep__pass():
    # These seemingly arbitrary arguments trigger separate conditional
    # branches based on odd/even midpoints in the Levene-Haldane distribution
    assert not np.isnan(hwep(1, 1, 1))
    assert not np.isnan(hwep(1, 2, 2))
Ejemplo n.º 3
0
def test_hwep__raise_on_negative(args):
    with pytest.raises(ValueError):
        hwep(*args)