aboutsummaryrefslogtreecommitdiff
path: root/tests/testthat/test_SFORB.R
diff options
context:
space:
mode:
Diffstat (limited to 'tests/testthat/test_SFORB.R')
-rw-r--r--tests/testthat/test_SFORB.R8
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/testthat/test_SFORB.R b/tests/testthat/test_SFORB.R
index ad9881a8..4fb736ec 100644
--- a/tests/testthat/test_SFORB.R
+++ b/tests/testthat/test_SFORB.R
@@ -15,16 +15,20 @@ test_that("Fitting the SFORB model is equivalent to fitting DFOP", {
use_of_ff = "max", quiet = TRUE)
SFORB_SFO <- mkinmod(parent = mkinsub("SFORB", "M1"),
M1 = mkinsub("SFO"),
+ use_of_ff = "min", quiet = TRUE)
+ SFORB_SFO_ff <- mkinmod(parent = mkinsub("SFORB", "M1"),
+ M1 = mkinsub("SFO"),
use_of_ff = "max", quiet = TRUE)
- SFORB_SFO$coefmat
-
f_dfop_sfo <- mkinfit(DFOP_SFO, DFOP_par_c, quiet = TRUE)
f_sforb_sfo <- mkinfit(SFORB_SFO, DFOP_par_c, quiet = TRUE)
+ f_sforb_sfo_ff <- mkinfit(SFORB_SFO_ff, DFOP_par_c, quiet = TRUE)
f_sforb_sfo_eigen <- mkinfit(SFORB_SFO, DFOP_par_c, solution_type = "eigen", quiet = TRUE)
expect_equivalent(endpoints(f_sforb_sfo)$distimes, endpoints(f_dfop_sfo)$distimes,
tolerance = 1e-6)
+ expect_equivalent(endpoints(f_sforb_sfo_ff)$distimes, endpoints(f_dfop_sfo)$distimes,
+ tolerance = 1e-6)
expect_equivalent(endpoints(f_sforb_sfo_eigen)$distimes, endpoints(f_dfop_sfo)$distimes,
tolerance = 1e-6)
})

Contact - Imprint