AMR/tests/testthat/test-data.R

8 lines
236 B
R
Raw Normal View History

context("data.R")
test_that("data sets are valid", {
# IDs should always be unique
expect_identical(nrow(antibiotics), length(unique(antibiotics$atc)))
expect_identical(nrow(microorganisms), length(unique(microorganisms$mo)))
})