tests/testthat/test-packages.R

testthat::context('packages')

testthat::describe('parse packages',{
  
  tex <- readLines(system.file('tmpl.tex',package = 'texPreview'))
  
  it('lines', {
    testthat::expect_equal(length(tex_requirements(lines = tex,file = NULL)),12)
  })

})

Try the texPreview package in your browser

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

texPreview documentation built on May 29, 2024, 5:45 a.m.