|
| 1 | + |
| 2 | +#' @srrstats {G5.0} The function is tested with a standard data set from a published paper. |
| 3 | +#' @srrstats {G5.1} The function is tested with a standard data set. The data set is |
| 4 | +#' created within and used to test the package. The data set is exported so that users |
| 5 | +#' can confirm tests and run examples. |
| 6 | +#' @srrstats {G5.2} Unit tests demonstrate error messages and compare results with expected values. |
| 7 | +#' @srrstats {G5.2a} Every message produced by `stop()` is unique. |
| 8 | +#' @srrstats {G5.2b} Unit tests demonstrate error messages and compare results with expected values. |
| 9 | +#' @srrstats {G5.4} Unit tests include correctness tests to test that statistical algorithms produce expected results to some fixed test data sets. |
| 10 | +#' @srrstats {G5.4c} Unit tests include stored values that are drawn from a published paper output. |
| 11 | +#' @srrstats {G5.5} Correctness tests are run with a fixed random seed. |
| 12 | +#' @srrstats {G5.6} Unit tests include parameter recovery checks to test that the implementation produces expected results given data with known properties. |
| 13 | +#' @srrstats {G5.6a} Parameter recovery tests are expected to be within a defined tolerance rather than exact values. |
| 14 | +#' @srrstats {G5.7} Unit tests include algorithm performance checks to test that the function performs as expected as parameters change. |
| 15 | +#' @srrstats {G5.8} See sub-tags for responses. |
| 16 | +#' @srrstats {G5.8a} Unit tests include checks for zero-length data. |
| 17 | +#' @srrstats {G5.8b} Unit tests include checks for unsupported data types. |
| 18 | +#' @srrstats {G5.8c} Unit tests include checks for data with 'NA' fields. |
| 19 | +#' @srrstats {G5.8d} Unit tests include checks for data outside the scope of the algorithm. |
| 20 | +#' @srrstats {G5.9} Unit tests include noise susceptibility tests for expected stochastic behavior. |
| 21 | +#' @srrstats {G5.9a} Unit tests check that adding trivial noise to data does not meaningfully change results. |
| 22 | +#' @srrstats {G5.9b} Unit tests check that different random seeds do not meaningfully change results. |
| 23 | +#' @srrstats {G5.10} All unit tests run as part of continuous integration. |
| 24 | + |
1 | 25 | test_that("data.frame input works the same as separate vectors", { |
2 | 26 | times <- c(100, 200, 300) |
3 | 27 | failures <- c(1, 2, 1) |
|
0 commit comments