File: test-construction.R

package info (click to toggle)
r-cran-blob 1.2.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 180 kB
  • sloc: sh: 13; makefile: 2
file content (8 lines) | stat: -rw-r--r-- 257 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
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")
})