tests/testthat/test-fars_map_state.R

context('fars_map_state')

test_that('Expect error when state.num input is not numeric',{
  expect_warning(expect_error(fars_map_state('RI',2014)))
  expect_error(fars_map_state('52',2014))
  })
ctaber/buildingRpackages documentation built on June 22, 2019, 3:59 a.m.