tests/testthat/test_tex_group.R

context("tex_group_by_char")

test_that("Examples", {
  out <- tex_group_by_char("a{b}")[[1]]
  expect_equal(out, c(0, 1, 1, 0))
  out <- tex_group_by_char("a{bc}{d{e}}")[[1]]
  expect_equal(out, c(0, 1, 1, 1, 0, 1, 1, 2, 2, 1, 0))
})

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.