tests/testthat/test_readAtcMapIntoHashMapAtcCodesAtcNames.R

library(epos)
context("test_readAtcMapIntoHashMapAtcCodesAtcNames")

test_that("Test function readAtcMapIntoHashMapAtcCodesAtcNames()", {
  atchashaa <-
     readAtcMapIntoHashMapAtcCodesAtcNames(
       system.file("extdata", "db-atc.map", package = "epos"), "\t")
  expect_that(length(names(atchashaa)), equals(681))
})

Try the epos package in your browser

Any scripts or data that you put into this service are public.

epos documentation built on Feb. 20, 2021, 9:09 a.m.