Skip to content

Commit

Permalink
Update options
Browse files Browse the repository at this point in the history
  • Loading branch information
richfitz committed Mar 23, 2021
1 parent 919475a commit 4f9a53f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions tests/testthat/helper-odin.R
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ validate_ir <- function() {

options(odin.verbose = FALSE,
odin.validate = validate_ir(),
odin.rewrite_constants = TRUE,
odin.target = NULL)


Expand Down Expand Up @@ -130,7 +129,6 @@ test_that_odin <- function(desc, code) {
code_enq <- rlang::enquo(code)
for (target in targets) {
opts <- list(odin.target = target,
odin.rewrite_dims = target == "c",
odin.rewrite_constants = target == "c")
testthat::test_that(sprintf("%s (%s)", desc, target),
withr::with_options(opts, rlang::eval_tidy(code_enq)))
Expand Down

0 comments on commit 4f9a53f

Please sign in to comment.