mirror of
https://github.com/msberends/AMR.git
synced 2025-07-13 05:21:50 +02:00
first isolate missing dates fix
This commit is contained in:
@ -42,9 +42,12 @@ test_that("as.ab works", {
|
||||
|
||||
expect_warning(as.ab("Z00ZZ00")) # not yet available in data set
|
||||
expect_warning(as.ab("UNKNOWN"))
|
||||
expect_warning(as.ab(""))
|
||||
|
||||
expect_output(print(as.ab("amox")))
|
||||
|
||||
expect_identical(class(pull(antibiotics, ab)), "ab")
|
||||
|
||||
# first 5 chars of official name
|
||||
expect_equal(as.character(as.atc(c("nitro", "cipro"))),
|
||||
c("J01XE01", "J01MA02"))
|
||||
@ -53,4 +56,7 @@ test_that("as.ab works", {
|
||||
expect_equal(as.character(as.atc("AMX")),
|
||||
"J01CA04")
|
||||
|
||||
expect_equal(as.character(as.ab("Phloxapen")),
|
||||
"FLC")
|
||||
|
||||
})
|
||||
|
Reference in New Issue
Block a user