Skip to content

Commit

Permalink
NOrmalize paths for error messages?
Browse files Browse the repository at this point in the history
  • Loading branch information
thebioengineer committed Oct 28, 2021
1 parent 34df0b0 commit 7a56d39
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions tests/testthat/test-find_config.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ test_that("Find config when within a package with validation", {
withr::with_dir(new = "example.package", {
expect_equal(
vt_find_config(),
file.path(getwd(), "vignettes","validation","validation.yml")
normalizePath(file.path(getwd(), "vignettes","validation","validation.yml"),winslash = "/")
)
})
})
Expand All @@ -31,7 +31,9 @@ test_that("Find config when within a package with validation when working dir is
withr::with_dir(new = "example.package", {
expect_equal(
vt_find_config(),
file.path(getwd(), "inst","validation","validation.yml")
normalizePath(
file.path(getwd(), "inst","validation","validation.yml"),
winslash = "/")
)
})
})
Expand All @@ -50,7 +52,9 @@ test_that("Find config when within a validation packet", {
withr::with_dir(new = "example_packet", {
expect_equal(
vt_find_config(),
file.path(getwd(), "validation","validation.yml")
normalizePath(
file.path(getwd(), "validation","validation.yml"),
winslash = "/")
)
})

Expand Down

0 comments on commit 7a56d39

Please sign in to comment.