diff --git a/tests/testthat/test-alienData.R b/tests/testthat/test-alienData.R index a5b88a6..91d7cd7 100644 --- a/tests/testthat/test-alienData.R +++ b/tests/testthat/test-alienData.R @@ -5,7 +5,12 @@ out <- as.alienData(idObs=idObs,interactPair=interactPair,traitSp=traitSp,traitI test_that("check data structure", { expect_is(out, "alienData") + # Even if items from the list are NULL, all items have to be returned + expect_equal(names(out),c("idObs","interactSp","interactInd","coOcc","coAbund","siteEnv","traitSp","traitInd","phylo")) }) test_that("check data integrity", { + # create fake data + idObs <- data.frame(idSite=rep(3,c("")), idTime=NULL) + })