Skip to content

Commit

Permalink
Add failed test for logp when const is measurable
Browse files Browse the repository at this point in the history
  • Loading branch information
shreyas3156 committed Apr 17, 2023
1 parent 0900485 commit 597e44e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/logprob/test_binary.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,3 +94,9 @@ def test_potentially_measurable_operand():
fn(z_vv_test, y_vv_test),
st.norm(2, 1).logcdf(z_vv_test),
)

with pytest.raises(
NotImplementedError,
match="Logprob method not implemented",
):
logp(y_rv, y_vv).eval({y_vv: y_vv_test})

0 comments on commit 597e44e

Please sign in to comment.