tests/testthat/test-construction.R

context("construction")

test_that("input must be list of raw blobs", {
  # error from vctrs package
  expect_error(new_blob(1))
  expect_error(blob(1), "must be a list of raw vectors")
  expect_error(blob(1, as.raw(1)), "must be a list of raw vectors")
})

Try the blob package in your browser

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

blob documentation built on March 31, 2023, 5:14 p.m.