repr icon indicating copy to clipboard operation
repr copied to clipboard

Check and increase test coverage

Open flying-sheep opened this issue 9 years ago • 1 comments

Options include

  • https://github.com/jimhester/covr
  • https://github.com/MangoTheCat/testCoverage

One predicate that every repr function for every format has to fullfill is

r <- repr_*(thing)

assert_true(is.null(r) || (is.character(r) || is.raw(r) && length(r) == 1L))

flying-sheep avatar May 13 '16 16:05 flying-sheep

Additionally from #5:

For vectors and so on: normal input and some edge cases: NULL, empty input, too long (ellipsis), unicode...

jankatins avatar May 13 '16 21:05 jankatins