Skip to content

Commit

Permalink
Add smoke test for fast_birth_death_tree
Browse files Browse the repository at this point in the history
  • Loading branch information
mmore500 committed May 18, 2024
1 parent c70a7b2 commit 79e20d4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/smoketests/test_birthdeath.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from dendropy.model.birthdeath import (
birth_death_likelihood,
birth_death_tree,
fast_birth_death_tree,
fit_pure_birth_model,
fit_pure_birth_model_to_tree,
uniform_pure_birth_tree,
Expand Down Expand Up @@ -44,3 +45,7 @@ def test_birth_death_likelihood():

res = birth_death_likelihood(tree=tree, birth_rate=1, death_rate=2)
assert isinstance(res, float)

def test_fast_birth_death_tree():
res = fast_birth_death_tree(1, 1, max_time=1)
assert isinstance(res, dendropy.Tree)

0 comments on commit 79e20d4

Please sign in to comment.