unit test

This commit is contained in:
dr. M.S. (Matthijs) Berends 2024-03-09 16:46:59 +01:00
parent bc4f8515e2
commit 4170def0ec
4 changed files with 5 additions and 7 deletions

View File

@ -1,6 +1,6 @@
Package: AMR Package: AMR
Version: 2.1.1.9014 Version: 2.1.1.9015
Date: 2024-03-03 Date: 2024-03-09
Title: Antimicrobial Resistance Data Analysis Title: Antimicrobial Resistance Data Analysis
Description: Functions to simplify and standardise antimicrobial resistance (AMR) Description: Functions to simplify and standardise antimicrobial resistance (AMR)
data analysis and to work with microbial and antimicrobial properties by data analysis and to work with microbial and antimicrobial properties by

View File

@ -1,4 +1,4 @@
# AMR 2.1.1.9014 # AMR 2.1.1.9015
*(this beta version will eventually become v3.0. We're happy to reach a new major milestone soon, which will be all about the new One Health support!)* *(this beta version will eventually become v3.0. We're happy to reach a new major milestone soon, which will be all about the new One Health support!)*

View File

@ -66,8 +66,7 @@ expect_equal(
c("101477-8", "101478-6", "18864-9", "18865-6", "20374-5", "21066-6", "23618-2", "27-3", "28-1", "29-9", "30-7", "31-5", "32-3", "33-1", "3355-5", "33562-0", "33919-2", "34-9", "43883-8", "43884-6", "6979-9", "6980-7", "87604-5") c("101477-8", "101478-6", "18864-9", "18865-6", "20374-5", "21066-6", "23618-2", "27-3", "28-1", "29-9", "30-7", "31-5", "32-3", "33-1", "3355-5", "33562-0", "33919-2", "34-9", "43883-8", "43884-6", "6979-9", "6980-7", "87604-5")
) )
expect_true(ab_url("AMX") %like% "whocc.no") expect_true(ab_url("AMX") %like% "fhi[.]no")
# expect_warning(ab_url("ASP"))
expect_identical( expect_identical(
colnames(set_ab_names(example_isolates[, 17:22])), colnames(set_ab_names(example_isolates[, 17:22])),

View File

@ -60,5 +60,4 @@ expect_equal(
c("29113-8", "30273-7", "30287-7", "30303-2", "78772-1", "78773-9", "79134-3", "80118-3") c("29113-8", "30273-7", "30287-7", "30303-2", "78772-1", "78773-9", "79134-3", "80118-3")
) )
expect_true(av_url("ACI") %like% "whocc.no") expect_true(av_url("ACI") %like% "fhi[.]no")
# expect_warning(av_url("ASP"))