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

Try the phonfieldwork package in your browser

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

phonfieldwork documentation built on March 3, 2021, 1:12 a.m.