We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b711532 commit 4c00247Copy full SHA for 4c00247
tests/testthat/test-npr.R
@@ -0,0 +1,10 @@
1
+# Test nums per recruit function
2
+test_that("NPR produces a list", {
3
+ xx <- npr(S0 = .91, S1plus = .99, nages = 10, AgeMat = 8)
4
+ expect_type(object = xx, type = "list")
5
+})
6
+
7
+test_that("One-plus nums per recruit is greater than reproducing nums per recruit", {
8
9
+ expect_true(xx$P1r > xx$npr)
10
0 commit comments