tests/test_files/block_02_Para.R

context("Para")

test_that("Para", {

    ## Test Str with Para
    x <- pandocfilters:::test(list(Para(list(Str("Hello R!")))))
    expect_that(x, equals("<p>Hello R!</p>"))
    x <- pandocfilters:::test(list(Para(Str("Hello R!"))))
    expect_that(x, equals("<p>Hello R!</p>"))

} )

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.