Skip to content

Commit a905c05

Browse files
committed
rearrange declarations in tests
1 parent 3e86aec commit a905c05

1 file changed

Lines changed: 11 additions & 12 deletions

File tree

tests/testthat/test-get_map_estimates.ss.R

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -65,18 +65,6 @@ test_that("MAP works with linear steady state equations", {
6565
#############################
6666

6767
## Set up model and regimen
68-
model2 <- PKPDsim::new_ode_model(
69-
code = "
70-
CLi = CL * pow(WT/70.0, 0.75)
71-
dAdt[1] = -KA*A[1]
72-
dAdt[2] = KA*A[1] - (CLi/V)*A[2]
73-
",
74-
obs = list(cmt = 2, scale = "V"),
75-
declare_variables = "CLi",
76-
dose = list(cmt = 1),
77-
covariates = covariates
78-
)
79-
8068
par_true <- list(CL=2.5, V=45, KA=0.5)
8169
par <- list(CL=2, V=30, KA=0.5)
8270
interval <- 24
@@ -94,6 +82,17 @@ test_that("MAP works with linear steady state equations", {
9482
times = c(0, 120)
9583
)
9684
)
85+
model2 <- PKPDsim::new_ode_model(
86+
code = "
87+
CLi = CL * pow(WT/70.0, 0.75)
88+
dAdt[1] = -KA*A[1]
89+
dAdt[2] = KA*A[1] - (CLi/V)*A[2]
90+
",
91+
obs = list(cmt = 2, scale = "V"),
92+
declare_variables = "CLi",
93+
dose = list(cmt = 1),
94+
covariates = covariates
95+
)
9796
tdm <- PKPDsim::sim(
9897
model2,
9998
parameters = par_true,

0 commit comments

Comments
 (0)