Skip to content

Commit

Permalink
Switch pattern and replacement in file path fix
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexAxthelm committed Mar 20, 2024
1 parent 8825b76 commit 41f40b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/testthat/test-get_package_info.R
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ expect_package_info <- function(
testthat::expect_match(
package_info[[package_identical]][["remotepkgref"]],
# gsub is used to make windows path into something matching .libPaths()
gsub(x = remotepkgref_match, pattern = "[\\]", replacement = "\\\\"),
gsub(x = remotepkgref_match, pattern = "[\\\\]", replacement = "\\"),
)
testthat::expect_identical(
package_info[[package_identical]][["remoteref"]],
Expand Down Expand Up @@ -166,7 +166,7 @@ test_that("get_individual_package_info collects information for GitHub packages

test_that("get_individual_package_info errors for package that doesn't exist", { #nolint: line_length_linter
expect_error(
get_individual_package_info("this_package_does_not_exist"),
get_individual_package_info("this_package_does_not_exist")
)
})

0 comments on commit 41f40b5

Please sign in to comment.