tests/testthat/test-pandoc_read.R

test_that("pandoc_read works", {
  skip_if_not(rmarkdown::pandoc_available())
  source <- file.path(getwd(), "input-data", "testBoard.Rmd")
  x <- pandoc_read(file = source, from = "markdown")
  y <- pandoc_write(x, to = "plain")
  y <- gsub("\\s", "", y)
  y <- tolower(y)
  expect_snapshot_value(y, )
})

Try the flexsiteboard package in your browser

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

flexsiteboard documentation built on Nov. 16, 2022, 1:11 a.m.