tests/testthat/test_spellcheck_0-7-0.R

context("spellcheck 0.7.0")

test_that("Possessive apostrophes don't trigger false positives", {
  tempf.tex <- tempfile(fileext = ".tex")
  writeLines(c("\\documentclass{article}",
               "% add_to_dictionary: ALP",
               "",
               "\\begin{document}",
               "The ALP's conference was held in Australia.",
               "\\end{document}",
               ""),
             tempf.tex)
  expect_null(check_spelling(tempf.tex))
})

Try the TeXCheckR package in your browser

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

TeXCheckR documentation built on Nov. 17, 2020, 9:08 a.m.