tests/testthat/test-get-textgrid-names.R

test_that("get_textgrid_names", {
  file1 <- system.file("extdata", "test.TextGrid", package = "phonfieldwork")
  file2 <- readLines(file1)

  expect_equal(
    get_textgrid_names(file1),
    c("intervals", "empty_intervals", "points")
  )
  expect_equal(
    get_textgrid_names(file2),
    c("intervals", "empty_intervals", "points")
  )
})

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.