tests/testthat/test-full_xampl.R

test_that("Full xampl on string", {
  file <- system.file("bib/xampl_mod.bib", package = "bibtex")
  out <- read.bib(file)
  expect_snapshot(names(out))

  expect_snapshot_output(out)
})


test_that("Full xampl on bibtex", {
  file <- system.file("bib/xampl_mod.bib", package = "bibtex")
  out <- read.bib(file)
  expect_snapshot_output(toBibtex(out))
})

Try the bibtex package in your browser

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

bibtex documentation built on Feb. 16, 2023, 8:26 p.m.