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)
})

Try the phonfieldwork package in your browser

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

phonfieldwork documentation built on Sept. 11, 2024, 9:18 p.m.