tests/testthat/test-system-file.R

test_that("make_sf() ~works~ doesn't fail", {
  expect_type(sf0 <- make_sf("foo"), "closure")
  expect_identical(sf0, sf, ignore_function_env = TRUE)
  expect_identical(sf0(23232), "")
  expect_error(sf0(23232, check = TRUE))
})

Try the mark package in your browser

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

mark documentation built on May 29, 2024, 5:13 a.m.