From a48d50e37f342be32dd6d3094f027fac3b86c73c Mon Sep 17 00:00:00 2001 From: Rich FitzJohn Date: Fri, 22 Sep 2023 11:05:57 +0100 Subject: [PATCH] Normalise more paths in tests --- tests/testthat/test-root.R | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/testthat/test-root.R b/tests/testthat/test-root.R index f714c03e..31b768ef 100644 --- a/tests/testthat/test-root.R +++ b/tests/testthat/test-root.R @@ -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")