Skip to content

Commit

Permalink
init test on integrity #18
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveViss committed Feb 17, 2017
1 parent 0bc1a59 commit 8a9ae03
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/testthat/test-alienData.R
Original file line number Diff line number Diff line change
Expand Up @@ -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)

})

0 comments on commit 8a9ae03

Please sign in to comment.