tests/testthat/test-sciprint.R

context("sciprint")

x <- scitation(
  "article", 
  'petkun2016', 
  doi = "10.7717/peerj.1126",
  author = "foobar",
  title = "That and this and stuff and things",
  journaltitle = "Stuff And Things",
  year = 2001
)

test_that("sciprint works", {
  expect_is(sciprint(x), "character")
  expect_match(sciprint(x), "2001")
  expect_match(sciprint(x), "foobar")
})
ropenscilabs/scitations documentation built on May 18, 2022, 8:31 p.m.