aboutsummaryrefslogtreecommitdiff
path: root/tests/testthat/test_plots_summary_twa.R
diff options
context:
space:
mode:
authorJohannes Ranke <jranke@uni-bremen.de>2019-11-01 12:19:03 +0100
committerJohannes Ranke <jranke@uni-bremen.de>2019-11-01 12:19:03 +0100
commitbbb74d4f60033899cd5cdd36aa70f157bc52209e (patch)
treeca0f620ba0ffd59ff242071260d2346e4ca254ff /tests/testthat/test_plots_summary_twa.R
parent70e48e8360875f22970174d409c46cb3f076fa99 (diff)
Fix bug in yesterdays release, add methods for BIC
Diffstat (limited to 'tests/testthat/test_plots_summary_twa.R')
-rw-r--r--tests/testthat/test_plots_summary_twa.R3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/testthat/test_plots_summary_twa.R b/tests/testthat/test_plots_summary_twa.R
index 28c569b6..5917dd6e 100644
--- a/tests/testthat/test_plots_summary_twa.R
+++ b/tests/testthat/test_plots_summary_twa.R
@@ -126,4 +126,7 @@ test_that("The AIC is reproducible", {
data.frame(df = c(3, 4, 5, 5), AIC = c(59.3, 44.7, 29.0, 39.2)),
scale = 1, tolerance = 0.1)
expect_error(AIC(fits["SFO", ]), "column object")
+ expect_equivalent(BIC(fits[, "FOCUS_C"]),
+ data.frame(df = c(3, 4, 5, 5), AIC = c(59.9, 45.5, 30.0, 40.2)),
+ scale = 1, tolerance = 0.1)
})

Contact - Imprint