tests/unit/data_test.R

source('unit/setup.R')
VERBOSE <- TRUE

library(clstutils)
library(ape)

test_seqs <- function(){

  data(seqs)
  checkTrue(is.matrix(seqs))

}

test_seqdata <- function(){

  data(seqs)
  data(seqdat)
  checkTrue(is.data.frame(seqdat))
  checkTrue(nrow(seqs) == nrow(seqdat))  
  checkTrue(all(rownames(seqs) == seqdat$seqname))
}

Try the clstutils package in your browser

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

clstutils documentation built on Nov. 8, 2020, 5:23 p.m.