aboutsummaryrefslogtreecommitdiff
path: root/tests/testthat/test_plots_summary_twa.R
diff options
context:
space:
mode:
authorJohannes Ranke <jranke@uni-bremen.de>2019-05-02 16:02:35 +0200
committerJohannes Ranke <jranke@uni-bremen.de>2019-05-02 16:02:35 +0200
commitce9399d08a05fffe8b003386c445f5ceab25dde5 (patch)
tree5f9aa1ee7f4762c79013278f61760503b1321e3c /tests/testthat/test_plots_summary_twa.R
parent70591022c07f0e8fb4dd67789b7c8d78af8ebc18 (diff)
Improve tests
- Improve control of the number of cores - Reduce the precision of the correlation matrix in the test summary output, as the exact results are platform dependent
Diffstat (limited to 'tests/testthat/test_plots_summary_twa.R')
-rw-r--r--tests/testthat/test_plots_summary_twa.R4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/testthat/test_plots_summary_twa.R b/tests/testthat/test_plots_summary_twa.R
index cf5715fa..43036f1a 100644
--- a/tests/testthat/test_plots_summary_twa.R
+++ b/tests/testthat/test_plots_summary_twa.R
@@ -58,6 +58,10 @@ test_that("The summary is reproducible", {
test_summary$date.summary <- "Dummy date for testing"
test_summary$calls <- "test 0"
test_summary$time <- c(elapsed = "test time 0")
+ # 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 <- signif(test_summary$Corr, 1)
expect_known_output(print(test_summary), "summary_DFOP_FOCUS_C.txt")
})

Contact - Imprint