tests/testthat/test-check_types.R

test_that("results", {
  expect_no_error(.check_types(matrix(1), "matrix"))
  expect_no_error(.check_types(list(matrix(1)), "matrix"))
  
  expect_error(.check_types(1, "matrix"))
  expect_error(.check_types(list(1), "matrix"))
})

Try the GeoTox package in your browser

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

GeoTox documentation built on April 4, 2025, 5:07 a.m.