Skip to content

Commit

Permalink
Normalise more paths in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
richfitz committed Sep 22, 2023
1 parent 871d061 commit a48d50e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/testthat/test-root.R
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,9 @@ test_that("can error with instructions if files are added to git", {

test_that("can identify a plain source root", {
info <- test_prepare_orderly_example_separate("explicit")
expect_equal(orderly_src_root(info$src, FALSE), info$src)
expect_equal(orderly_src_root(info$src, FALSE), normalizePath(info$src))
expect_equal(orderly_src_root(file.path(info$src, "src", "explicit"), TRUE),
info$src)
normalizePath(info$src))
expect_error(
orderly_src_root(file.path(info$src, "src", "explicit"), FALSE),
"Did not find existing orderly source root in")
Expand Down

0 comments on commit a48d50e

Please sign in to comment.