dwww Home | Show directory contents | Find package

context("Test the error handlers for rand_* functions")

test_that("rand_bytes detects non-numeric arguments", {

  expect_that(rand_bytes("turnip"), throws_error(regexp = "numeric", fixed = TRUE))

})

Generated by dwww version 1.15 on Sun Jun 16 18:09:42 CEST 2024.