Skip to content
Snippets Groups Projects

Fix failing test under devtools::check()

Merged Sebastian Henz requested to merge hotfix/options into master
1 file
+ 5
1
Compare changes
  • Side-by-side
  • Inline
@@ -19,5 +19,9 @@ test_that("user options are not permanently changed by ecxsys()", {
hormesis_concentration = 0.3
)
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)])
})
Loading