1
0
mirror of https://github.com/msberends/AMR.git synced 2024-12-26 06:46:11 +01:00

fixed unit test

This commit is contained in:
dr. M.S. (Matthijs) Berends 2019-05-13 13:03:30 +02:00
parent 0dc0715dc6
commit c4aa92b4a7

View File

@ -202,7 +202,7 @@ test_that("as.mo works", {
expect_warning(as.mo("esco extra_text", allow_uncertain = TRUE))
expect_equal(suppressWarnings(as.character(as.mo("unexisting aureus", allow_uncertain = 3))), "B_STPHY_AUR")
expect_equal(suppressWarnings(as.character(as.mo("unexisting staphy", allow_uncertain = 3))), "B_STPHY")
expect_equal(suppressWarnings(as.character(as.mo("Staphylococcus aureus unexisting", allow_uncertain = 3))), "B_STPHY")
expect_equal(suppressWarnings(as.character(as.mo("Staphylococcus aureus unexisting", allow_uncertain = 3))), "B_STPHY_AUR")
# predefined reference_df
expect_equal(as.character(as.mo("TestingOwnID",