Skip to content

Commit

Permalink
unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
tvatter committed Feb 8, 2025
1 parent 2b832b3 commit f8ba16c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/test_bicop.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ def test_bicop():
with pytest.raises(AttributeError):
bicop.npars = 2

# Test passing a single row of data (#169 & #170 fix)
u = np.array([[0.1, 0.2]])
d = bicop.pdf(u)
assert isinstance(d, np.ndarray) and d.shape == (1,)

# Test loglik method
bicop.var_types = ["c", "c"]
u = np.array([[0.1, 0.2], [0.3, 0.4]])
Expand Down

0 comments on commit f8ba16c

Please sign in to comment.