Skip to content

Commit

Permalink
Add "exe" extension to windows programs (#276)
Browse files Browse the repository at this point in the history
  • Loading branch information
gowerc authored Mar 1, 2024
1 parent ce9597a commit 4af446e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
5 changes: 4 additions & 1 deletion tests/testthat/test-extract_quantities.R
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,10 @@ test_that("extract_quantities() works as expected", {
),
exe_file = file.path(
CACHE_DIR,
paste0("test_extract_gq")
paste0(
"test_extract_gq",
if (is_windows()) ".exe" else ""
)
)
)

Expand Down
6 changes: 5 additions & 1 deletion tests/testthat/test-stan_functions.R
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@ run_stan_function <- function(stan_data, fun_files, dir, basename) {
),
exe_file = file.path(
dir,
paste0("testfuns_", basename)
paste0(
"testfuns_",
basename,
if (is_windows()) ".exe" else ""
)
)
)
# Completely silence call to STAN as we aren't fitting a real model
Expand Down

0 comments on commit 4af446e

Please sign in to comment.