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

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

  expect_equal(nrow(intensity_to_df(file1)), 74)
  expect_equal(nrow(intensity_to_df(file2)), 74)
})
agricolamz/phonfieldwork documentation built on July 30, 2024, 8:51 p.m.