tests/testthat/test_solution.R

test_that("GetHowManyTrees_solution",{
	expect_equal(GetHowManyTrees_solution(), 34459425)
})

test_that("GetAlignment_solution",{
	library(ape)
	data(woodmouse)
	alignment <- GetAlignment_solution()
	expect_equal(dim(alignment)[2], dim(woodmouse)[2])
})
PhyloMeth/getting-started-cyarber2 documentation built on May 8, 2019, 1:41 p.m.