tests/testthat/test-tableNormality.R

test_that("Create normality table - data.frame format", {
  table_norm <- tableNormality(testAudioData, measure = "duration")
  conditions <- unique(testAudioData$Condition)
  expect_true(all(table_norm$Condition %in% c("General", conditions)))
})

test_that("Create normality table - html format", {
  table_norm <- tableNormality(testAudioData, measure = "duration",
                               HTMLTable = TRUE)

  expect_true(any(class(table_norm) %in% "kableExtra"))
})

Try the voiceR package in your browser

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

voiceR documentation built on Sept. 13, 2023, 1:07 a.m.