diff options
author | Johannes Ranke <jranke@uni-bremen.de> | 2016-09-27 23:00:48 +0200 |
---|---|---|
committer | Johannes Ranke <jranke@uni-bremen.de> | 2016-09-27 23:00:48 +0200 |
commit | 12a31f4c130c551f82232d9ef7dfb608bd52c53f (patch) | |
tree | 2525ab1ea4102a6edddbd0c2f03f4a851bf2f9c5 /pkg/tests/testthat/test_SFO_actual_twa.R | |
parent | 0d958ab6f84b569b5437f231c56004890c4ae23b (diff) |
Reorganise repository using standard package layout
Diffstat (limited to 'pkg/tests/testthat/test_SFO_actual_twa.R')
-rw-r--r-- | pkg/tests/testthat/test_SFO_actual_twa.R | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/pkg/tests/testthat/test_SFO_actual_twa.R b/pkg/tests/testthat/test_SFO_actual_twa.R deleted file mode 100644 index b0a5537..0000000 --- a/pkg/tests/testthat/test_SFO_actual_twa.R +++ /dev/null @@ -1,13 +0,0 @@ -library(pfm) -context("Actual and time weighted average concentrations for SFO kinetics") - -test_that("SFO_actual_twa calculates correctly", { - test_times <- c(0, 1, 7, 21, 42) - # This was calculated with the CRD spreadsheet for multiple applications - reference <- data.frame( - actual = c(10, 9.330, 6.156, 2.333, 0.544), - twa = c(NaN, 9.661, 7.923, 5.267, 3.248), - row.names = test_times) - result <- round(10 * SFO_actual_twa(10, times = test_times), 3) - expect_equal(result, reference) -}) |