tests/test_files/block_06_OrderedList.R

context("OrderedList")

test_that("OrderedList", {

	y <- paste("<ol>", "<li>A</li>", "<li>B</li>", "<li>C</li>", "</ol>", sep = "\n")

    ordered_1 <- Plain("A")
	ordered_2 <- list(Plain(Str("B")))
	ordered_3 <- list(Plain(list(Str("C"))))
	block <- OrderedList(ListAttributes(), list(ordered_1, ordered_2, ordered_3))
    x <- pandocfilters:::test(list(block))
    expect_that(x, equals(y))

} )

Try the pandocfilters package in your browser

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

pandocfilters documentation built on Aug. 12, 2022, 1:05 a.m.