Skip to content
Snippets Groups Projects
Commit 438d3e10 authored by Sebastian Henz's avatar Sebastian Henz
Browse files

Merge branch 'hotfix/options' into 'master'

Fix failing test under devtools::check()

I ran the `testthat` tests but forgot to run `devtools::check()`. Somehow the options are handled differently in both cases.

See merge request !7
parents ad41c499 45926799
No related branches found
No related tags found
Loading
...@@ -19,5 +19,9 @@ test_that("user options are not permanently changed by ecxsys()", { ...@@ -19,5 +19,9 @@ test_that("user options are not permanently changed by ecxsys()", {
hormesis_concentration = 0.3 hormesis_concentration = 0.3
) )
new_options <- options() new_options <- options()
expect_identical(original_options, new_options)
# When doing devtools::check() some additional options may get added while
# running the model. So limit the equality testing to the option names which
# were there originally.
expect_identical(original_options, new_options[names(original_options)])
}) })
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment