tests/testthat/test-getConditions.R

test_that("Get Conditions from a list of audios", {
  conditions <- getConditions(audioList = testAudioList,
                fileNamePattern = "ID_Condition_Dimension", sep = "_")
  expect_true(all(conditions %in% c("Happy", "Sad")))

})

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.