mirror of
https://github.com/msberends/AMR.git
synced 2026-11-16 02:20:49 +01:00
(v1.3.0.9027) unit tests
This commit is contained in:
1 parent
c19095a3d5
commit
027215ed94
17 files changed
+23
-20
No files matched your search
@@ -29,8 +29,8 @@ test_that("proportions works", {
|
||||
expect_equal(proportion_SI(example_isolates$AMX), susceptibility(example_isolates$AMX))
|
||||
|
||||
# AMX resistance in `example_isolates`
|
||||
expect_equal(proportion_R(example_isolates$AMX), 0.5557364, tolerance = 0.0001)
|
||||
expect_equal(proportion_I(example_isolates$AMX), 0.002441009, tolerance = 0.0001)
|
||||
expect_equal(proportion_R(example_isolates$AMX), 0.5955556, tolerance = 0.0001)
|
||||
expect_equal(proportion_I(example_isolates$AMX), 0.002222222, tolerance = 0.0001)
|
||||
expect_equal(1 - proportion_R(example_isolates$AMX) - proportion_I(example_isolates$AMX),
|
||||
proportion_S(example_isolates$AMX))
|
||||
expect_equal(proportion_R(example_isolates$AMX) + proportion_I(example_isolates$AMX),
|
||||
|
||||
Reference in new issue
Block a user