tests/testthat/test-init.R

test_that("the compiled library is loaded", {
  expect_true("zuhtml" %in% names(getLoadedDLLs()))
})

test_that("native routines are registered and dynamic lookup is off", {
  dll <- getLoadedDLLs()[["zuhtml"]]
  expect_false(unclass(dll)[["dynamicLookup"]])
  routines <- getDLLRegisteredRoutines(dll)
  expect_true("C_zuhtml_info" %in% names(routines$.Call))
})

Try the zuhtml package in your browser

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

zuhtml documentation built on Oct. 6, 2026, 5:06 p.m.