Skip to content

Commit 731855a

Browse files
committed
add test for find_msyr() #58 openjournals/joss-reviews#3888
1 parent 4089562 commit 731855a

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

tests/testthat/test-find_mysr.R

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Test the findmsyr() function
2+
3+
test_that("Test findmsyr", {
4+
# Set parameters
5+
lh.params <- list(
6+
S0.w = 0.5, S1plus.w = 0.944,
7+
nages.w = 25, K1plus.w = 9000,
8+
AgeMat.w = 18, z.w = 2.39,
9+
lambdaMax.w = 1.04
10+
)
11+
12+
expect_error(find_msyr(E.start = 0.01, lh.params = list(
13+
S0 = 1.01, S1plus = S1plus.w, nages = nages.w,
14+
AgeMat = AgeMat.w, K1plus = 9000, z = z.w, lambdaMax = 1.09
15+
), fmax = fmax))
16+
})

0 commit comments

Comments
 (0)