Skip to content

Commit

Permalink
Really fix tests on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
gaborcsardi committed Apr 9, 2024
1 parent 8aadd01 commit d78e217
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/testthat/test-platforms.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ test_that("get_platforms", {
)

plt <- get_platforms()
plt[[1]] <- sub("\r\n", "\n", plt[[1]], fixed = TRUE)
plt[[2]] <- sub("\r\n", "\n", plt[[2]], fixed = TRUE)
plt[[1]] <- gsub("\r\n", "\n", plt[[1]], fixed = TRUE)
plt[[2]] <- gsub("\r\n", "\n", plt[[2]], fixed = TRUE)
expect_snapshot({
cli::hash_obj_sha1(plt[[1]])
cli::hash_obj_sha1(plt[[2]])
Expand Down Expand Up @@ -138,4 +138,4 @@ test_that("select_platforms", {
expect_snapshot(error = TRUE, {
select_platforms()
})
})
})

0 comments on commit d78e217

Please sign in to comment.