inst/tests/test-texweave.r

context("texweave")

test_that("Simple weaving accomplished correctly", {
  woven <- texweave(evaluate(file("weave.r")))
  cache <- str_c(c(readLines("weave.rout"), ""), collapse = "\n")
  
  expect_that(woven, equals(cache))
})
hadley/decumar documentation built on May 17, 2019, 9:56 a.m.