tests/testthat/test-das_check.R

test_that("das_check no error output", {
  y.check <- das_check(system.file("das_sample.das", package = "swfscDAS"),
                      print.cruise.nums = FALSE)

  exp.df <- data.frame(
    File = NA, LineNum = NA, CruiseNum = NA, ID = NA,
    Description = "No errors found",
    stringsAsFactors = FALSE
  )

  expect_identical(y.check, exp.df)

  # TODO: Make das_sample_error.das with some errors to check here
})

Try the swfscDAS package in your browser

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

swfscDAS documentation built on Aug. 10, 2023, 9:06 a.m.