Skip to content

Commit

Permalink
added test
Browse files Browse the repository at this point in the history
  • Loading branch information
caseywdunn committed Jul 16, 2017
1 parent 94e181d commit 1613d2d
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion tests/testthat/test_general.R
Original file line number Diff line number Diff line change
Expand Up @@ -84,4 +84,14 @@ test_that("can get the connecting edges for tips that span root",{
test_that("can get the connecting edges for ancestor and descendent nodes",{
edges = connecting_edges( siphonophore_ml, 65, 67)
expect_true( setequal( edges, c( 11, 12 ) ) )
})
})

gene_tree_ultametric = chronos( gene_tree )
test_that("extended ultrametric tree is still ultrametric",{
expect_true(
is.ultrametric(
extend_terminal_branches( gene_tree_ultametric, 1 )
)
)
})

0 comments on commit 1613d2d

Please sign in to comment.