tests/testthat/test-tips.r

test_that("tips get tip labels", {
    tree = rankedPhylo(5)
    expect_identical(tips(tree), tree$tip.label)
    
    trees = rankedPhylo(3:7)
    expect_identical(tips(trees),trees[[1]]$tip.label)
    
    expect_identical(
        tips(trees, all=TRUE),
        lapply(trees, getElement, "tip.label")
        )
    })

Try the rrnni package in your browser

Any scripts or data that you put into this service are public.

rrnni documentation built on Aug. 25, 2023, 5:16 p.m.