tests/testthat/test-call_user_fun.R

test_that("Test 1: Error is issued to function call if function errors", {
  expect_snapshot(
    call_user_fun(compute_bmi(height = 172, weight = "hallo")),
    error = TRUE
  )
})
Roche-GSK/admiral documentation built on April 14, 2025, 12:36 p.m.