tests/testthat/test-formant-to-df.R

test_that("formant_to_df", {
  file1 <- system.file("extdata", "e.Formant", package = "phonfieldwork")
  file2 <- readLines(file1)

  expect_equal(nrow(formant_to_df(file1)), 164)
  expect_equal(nrow(formant_to_df(file2)), 164)
})
agricolamz/lingfieldwork documentation built on Aug. 2, 2024, 10:47 p.m.