tests/testthat/test-convert-methods.R

# Test convert-methods

# LIBS
library(treemantools)
library(testthat)

# RUNNING
context ('Testing \'convert-methods\'')
test_that ('setAs(from=TreeMan, to=phylo) works', {
  tree <- randTree(10)
  tree <- as(tree, 'phylo')
  expect_true(is(tree, 'phylo'))
})
DomBennett/treemantools documentation built on May 6, 2019, 2:51 p.m.