Skip to content

Commit 1c85cfc

Browse files
committed
Check leaf overflow
1 parent 6022dd5 commit 1c85cfc

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ Imports:
5050
Rdpack (>= 0.7),
5151
shiny,
5252
shinyjs,
53-
TreeTools (>= 2.0.0.9002),
53+
TreeTools (>= 2.0.0.9004),
5454
Suggests:
5555
bookdown,
5656
cluster,

tests/testthat/test-split_info.R

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,15 @@ test_that("Split info calculated", {
2121
consensus_info(trees, TRUE, 0.7))
2222
expect_error(consensus_info(trees, TRUE, 7))
2323
expect_error(consensus_info(trees, TRUE, -7))
24+
expect_error(
25+
consensus_info(list(rtree(20000), rtree(20000)), TRUE, p = 1),
26+
"This many leaves are not yet supported"
27+
)
28+
expect_error(
29+
consensus_info(list(rtree(20000), rtree(20000)), FALSE, p = 1),
30+
"This many leaves are not yet supported"
31+
)
32+
2433

2534
# Expected:
2635
# - tablei = 0:

0 commit comments

Comments
 (0)