tests/testthat/test.summary.classifdata.R

context("summary.classifdata")


test_that("correct info about class structure", {
  data = read.morphodata("../testFiles/samplePlnaMatica.txt")

  c.lda = suppressWarnings(classif.lda(data))
  
  output = capture.output(summary(c.lda))

  expect_equal(output[1], "Object of class 'classifdata'; storing results of classificatory discriminant analysis")
})

Try the MorphoTools2 package in your browser

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

MorphoTools2 documentation built on March 7, 2023, 6:18 p.m.