tests/testthat/test_texNum.R

context("texNum")

test_that("Error handling", {
  expect_error(texNum(1:2), 
               regexp = "length")
  expect_error(texNum("a"), 
               regexp = "type character")
})
HughParsonage/grattanCharts documentation built on May 8, 2019, 10:52 a.m.