tests/testthat/test_check_sentence_ending_periods.R

context("Sentence-ending periods")

test_that("Raises error when sentence-ending period exists", {
  expect_error(check_sentence_ending_periods("sentence-ending-period-error.tex"))
  expect_null(check_sentence_ending_periods("sentence-ending-period-ok-hl.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.