def test_hwep__zeros(): assert np.isnan(hwep(0, 0, 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))
def test_hwep__raise_on_negative(args): with pytest.raises(ValueError): hwep(*args)