tests/testthat/test-handl-class.R

context("handl-class")

test_that("handl class", {
  skip_on_cran()
  skip_if_not_installed("bibtex")

  z <- system.file('extdata/crossref.bib', package = "handlr")
  x <- bibtex_reader(z)

  expect_is(x, "handl")
  expect_output(print(x), "<handl>")
  expect_output(print(x), "from: bibtex")
  expect_output(print(x), "many: FALSE")
  expect_output(print(x), "count: 1")
  expect_output(print(x), "first 10")
})

Try the handlr package in your browser

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

handlr documentation built on Jan. 13, 2021, 7:27 a.m.