tests/test_files/block_01_Plain.R

context("Plain")

test_that("Plain", {

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

} )

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.