aboutsummaryrefslogtreecommitdiff
path: root/tests/testthat/test_plots_summary_twa.R
diff options
context:
space:
mode:
authorJohannes Ranke <jranke@uni-bremen.de>2020-05-08 09:00:20 +0200
committerJohannes Ranke <jranke@uni-bremen.de>2020-05-08 09:00:20 +0200
commitf6f8ca5142020c2c5b0628bdcae1e2d00b80c6d5 (patch)
tree6cb3d93ed2303aca71403b8c7e7907d5a1e2c9b6 /tests/testthat/test_plots_summary_twa.R
parent09104e678154881762199b8ba19d7683fac9155f (diff)
Roxygenize, adapt tests
Diffstat (limited to 'tests/testthat/test_plots_summary_twa.R')
-rw-r--r--tests/testthat/test_plots_summary_twa.R8
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/testthat/test_plots_summary_twa.R b/tests/testthat/test_plots_summary_twa.R
index 19ae8770..13d1dd0f 100644
--- a/tests/testthat/test_plots_summary_twa.R
+++ b/tests/testthat/test_plots_summary_twa.R
@@ -39,7 +39,7 @@ test_that("Summaries are reproducible", {
# The correlation matrix is quite platform dependent
# It differs between i386 and amd64 on Windows
# and between Travis and my own Linux system
- test_summary$Corr <- NULL
+ test_summary$Corr <- "Correlation matrix is platform dependent, not tested"
expect_known_output(print(test_summary), "summary_DFOP_FOCUS_C.txt")
test_summary_2 <- summary(f_sfo_sfo_eigen)
@@ -53,7 +53,9 @@ test_that("Summaries are reproducible", {
# It differs between i386 and amd64 on Windows
# and between Travis and my own Linux system
# Even more so when using the Eigen method
- test_summary_2$Corr <- NULL
+ test_summary_2$Corr <- "Correlation matrix is platform dependent, not tested"
+ # The residuals for this method are also platform sensitive
+ test_summary_2$data$residual <- "not tested"
expect_known_output(print(test_summary_2), "summary_DFOP_FOCUS_D_eigen.txt")
test_summary_3 <- summary(f_sfo_sfo_desolve)
@@ -66,7 +68,7 @@ test_that("Summaries are reproducible", {
# The correlation matrix is quite platform dependent
# It differs between i386 and amd64 on Windows
# and between Travis and my own Linux system
- test_summary_3$Corr <- NULL
+ test_summary_3$Corr <- "Correlation matrix is platform dependent, not tested"
expect_known_output(print(test_summary_3), "summary_DFOP_FOCUS_D_deSolve.txt")
})

Contact - Imprint