Skip to content

Commit

Permalink
update tests for lua filters accordingly
Browse files Browse the repository at this point in the history
  • Loading branch information
yihui committed Aug 9, 2024
1 parent 0d8eabd commit c61d0f2
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions tests/testthat/test-lua-filters.R
Original file line number Diff line number Diff line change
Expand Up @@ -108,22 +108,23 @@ test_that("formats have the expected Lua filter", {
}
# different lua filter
pgb <- "pagebreak"; lxd <- "latex-div"
tbl <- if (pandoc_available("3.2.1")) "table-classes"
nbs <- "number-sections"; acs <- "anchor-sections"
expect_filters(beamer_presentation(), c(pgb, lxd))
expect_filters(github_document(number_sections = TRUE),
md_document(number_sections = TRUE))
expect_filters(html_document(), c(pgb, lxd))
expect_filters(html_document(anchor_sections = TRUE), c(pgb, lxd, acs))
expect_filters(html_document(anchor_sections = list(depth = 3)), c(pgb, lxd, acs))
expect_filters(html_document_base(), c(pgb, lxd))
expect_filters(html_document(), c(pgb, lxd, tbl))
expect_filters(html_document(anchor_sections = TRUE), c(pgb, lxd, tbl, acs))
expect_filters(html_document(anchor_sections = list(depth = 3)), c(pgb, lxd, tbl, acs))
expect_filters(html_document_base(), c(pgb, lxd, tbl))
expect_filters(latex_document(), c(pgb, lxd))
expect_filters(context_document(ext = ".tex"), c(pgb))
expect_filters(md_document(number_sections = TRUE), c(nbs))
expect_filters(pdf_document(), c(pgb, lxd))
expect_filters(powerpoint_presentation(number_sections = TRUE), c(nbs))
expect_filters(odt_document(number_sections = TRUE), c(pgb, nbs))
expect_filters(rtf_document(number_sections = TRUE), c(nbs))
expect_filters(slidy_presentation(number_sections = TRUE), c(pgb, lxd, nbs))
expect_filters(slidy_presentation(number_sections = TRUE), c(pgb, lxd, tbl, nbs))
expect_filters(
word_document(number_sections = TRUE),
c(pgb, if (!pandoc_available("2.10.1")) nbs)
Expand Down

0 comments on commit c61d0f2

Please sign in to comment.