Skip to content

Commit

Permalink
shorten test on CRAN
Browse files Browse the repository at this point in the history
  • Loading branch information
mwmclean committed Jul 4, 2017
1 parent 8678ee6 commit e7d5006
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions tests/testthat/test-methods.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,20 @@ bib <- ReadBib(system.file("Bib", "biblatexExamples.bib",

test_that("yaml printing with authoryear", {
BibOptions(check.entries = FALSE)
print(bib[47:92], .opts = list(bib.style = "authoryear",
idx <- if (Sys.getenv("NOT_CRAN") == "")
47:92
else
48:50
print(bib[idx], .opts = list(bib.style = "authoryear",
sorting = "anyvt", style = "yaml"))
})

test_that("R style printing with authoryear", {
print(bib[1:46], .opts = list(bib.style = "authoryear",
idx <- if (Sys.getenv("NOT_CRAN") == "true")
1:46
else
8:10
print(bib[idx], .opts = list(bib.style = "authoryear",
sorting = "anyt", style = "R"))
})

Expand Down

0 comments on commit e7d5006

Please sign in to comment.