Skip to content
Permalink
master
Go to file
 
 
Cannot retrieve contributors at this time
28 lines (18 sloc) 574 Bytes
testthat::context('utilities')
path <- file.path(tempdir(),'tex')
cleanup(path)
tex_opts$set(returnType = 'tex',fileDir = path)
tex <- '\\begin{tabular}{lll}
3&3&3
\\end{tabular}'
testthat::describe('print methods',{
tex_output <- tex_preview(tex,returnType = 'tex')
input_output <- tex_preview(tex,returnType = 'input')
it('texpreview_tex', {
testthat::expect_output(print(tex_output),regexp = 'tabular')
})
it('texpreview_input', {
testthat::expect_output(print(input_output),regexp = 'tex_temp.tex')
})
})
cleanup(path,create = FALSE)
You can’t perform that action at this time.