@@ -46,7 +46,7 @@ for (n_tip in c(4, 5, 6, 8, 13, 20, 50)) {
4646 class(forest ) <- " multiPhylo"
4747 for (p in ps ) {
4848 hashed <- split_set(TreeTools ::: consensus_tree(forest , p ), n_tip )
49- exact <- split_set(TreeTools ::: consensus_tree(forest , p , exact = TRUE ), n_tip )
49+ exact <- split_set(TreeTools ::: consensus_tree(forest , p , hash = FALSE ), n_tip )
5050 check(identical(hashed , exact ),
5151 sprintf(" consensus hashed!=exact n=%d k=%d p=%.3g" , n_tip , k , p ))
5252 }
@@ -74,7 +74,7 @@ for (nm in names(adversarial)) {
7474 n_tip <- NTip(forest [[1 ]])
7575 for (p in ps ) {
7676 hashed <- split_set(TreeTools ::: consensus_tree(forest , p ), n_tip )
77- exact <- split_set(TreeTools ::: consensus_tree(forest , p , exact = TRUE ), n_tip )
77+ exact <- split_set(TreeTools ::: consensus_tree(forest , p , hash = FALSE ), n_tip )
7878 check(identical(hashed , exact ), sprintf(" %s p=%.3g: hashed!=exact" , nm , p ))
7979 }
8080}
@@ -85,8 +85,8 @@ for (n_tip in c(4, 6, 8, 13, 30)) {
8585 for (k in c(1 , 2 , 5 , 12 , 40 )) {
8686 forest <- lapply(seq_len(k ), function (i ) ape :: rtree(n_tip , br = NULL ))
8787 class(forest ) <- " multiPhylo"
88- sh <- SplitFrequency(forest , exact = FALSE )
89- se <- SplitFrequency(forest , exact = TRUE )
88+ se <- SplitFrequency(forest , hash = FALSE )
89+ sh <- SplitFrequency(forest , hash = TRUE )
9090 # Compare as (split -> count) maps, order-independent
9191 key <- function (s ) {
9292 if (length(s ) == 0 ) return (character (0 ))
0 commit comments