Skip to content

Commit 0008410

Browse files
committed
add tests more tests of printing
1 parent b5ed5ae commit 0008410

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

tests/testthat/test-methods.R

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,19 @@ bib <- ReadBib(system.file("Bib", "biblatexExamples.bib",
88
package = "RefManageR"), check = FALSE)
99

1010

11+
test_that("yaml printing with authoryear", {
12+
BibOptions(check.entries = FALSE)
13+
print(bib[47:92], .opts = list(bib.style = "authoryear",
14+
sorting = "anyvt", style = "yaml"))
15+
})
16+
17+
test_that("R style printing with authoryear", {
18+
print(bib[1:46], .opts = list(bib.style = "authoryear",
19+
sorting = "anyt", style = "R"))
20+
21+
})
22+
23+
1124
test_that("addition operator", {
1225
res <- bib[1:3] + bib[3:4]
1326
expect_length(res, 4L)
@@ -73,4 +86,3 @@ test_that("list extraction", {
7386
expect_length(bib[[c("westfahl:space", "angenendt")]], 2L)
7487
expect_length(bib[[6:10]], 5L)
7588
})
76-

0 commit comments

Comments
 (0)