1
0
mirror of https://github.com/msberends/AMR.git synced 2025-07-08 12:31:58 +02:00

(v1.4.0.9000) more extensive unit tests

This commit is contained in:
2020-10-15 09:46:41 +02:00
parent 28e77680c5
commit 833a1be36d
74 changed files with 2047 additions and 2120 deletions

View File

@ -61,7 +61,7 @@ The actual result is the same every time: it returns its microorganism code ``r
But the calculation time differs a lot:
```{r, warning=FALSE}
```{r, warning=FALSE, message=FALSE}
S.aureus <- microbenchmark(
as.mo("sau"), # WHONET code
as.mo("stau"),
@ -117,7 +117,7 @@ So getting official taxonomic names of `r format(length(x), big.mark = ",")` (!!
What about precalculated results? If the input is an already precalculated result of a helper function like `mo_name()`, it almost doesn't take any time at all (see 'C' below):
```{r}
```{r, warning=FALSE, message=FALSE}
run_it <- microbenchmark(A = mo_name("STAAUR"),
B = mo_name("S. aureus"),
C = mo_name("Staphylococcus aureus"),