tests/testthat/test-rbyte.R

test_that("rbyte works", {
  res <- rbyte(32, type = 'raw')
  expect_length(res, 32)
  expect_true(is.raw(res))
  
  res <- rbyte(32, type = "chr")
  expect_true(is.character(res))
  expect_true(nchar(res) == 64)
})

Try the rmonocypher package in your browser

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

rmonocypher documentation built on April 4, 2025, 4:41 a.m.