tests/testthat/test-misc.R

test_that("error is thrown for small number", {
  expect_error(find_smallest_10(x = 1e-20), 'too small')
})

Try the table.glue package in your browser

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

table.glue documentation built on Feb. 16, 2023, 9:29 p.m.