tests/tinytest.R

if ( requireNamespace("tinytest", quietly=TRUE) ){
  # perform regular tests:
  tinytest::test_package("tinycodet", set_env=list(LC_COLLATE="C"))
  tinytest::test_package("tinycodet", testdir = file.path("tinytest", "safer"), set_env=list(LC_COLLATE="C"))
  tinytest::test_package("tinycodet", testdir = file.path("tinytest", "import"), set_env=list(LC_COLLATE="C"))
  tinytest::test_package("tinycodet", testdir = file.path("tinytest", "strings"), set_env=list(LC_COLLATE="C"))
  tinytest::test_package("tinycodet", testdir = file.path("tinytest", "dry"), set_env=list(LC_COLLATE="C"))

  # perform special tests on fake packages:
  tinytest::test_package("tinycodet", testdir = file.path("tinytest", "special"), set_env=list(LC_COLLATE="C"))
}

Try the tinycodet package in your browser

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

tinycodet documentation built on Sept. 12, 2024, 7:03 a.m.