From 44050a0c31bd1048e0db0dff894f097e4db0ddb0 Mon Sep 17 00:00:00 2001 From: jorainer Date: Fri, 17 May 2024 11:05:59 +0200 Subject: [PATCH] fix: adapt unit test to Windows OS --- tests/testthat/test_MsBackendMzR.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/testthat/test_MsBackendMzR.R b/tests/testthat/test_MsBackendMzR.R index 318a73ca..0a4e7954 100644 --- a/tests/testthat/test_MsBackendMzR.R +++ b/tests/testthat/test_MsBackendMzR.R @@ -579,7 +579,7 @@ test_that("dataStorageBasePath,dataStorageBasePath<-,MsBackendMzR works", { MsCoreUtils::common_path(sciex_file)) tmp <- sciex_mzr dataStorageBasePath(tmp) <- tmpd - expect_equal(dataStorageBasePath(tmp), tmpd) + expect_equal(dataStorageBasePath(tmp), gsub("\\", "/", tmpd, fixed = TRUE)) #' errors expect_error(dataStorageBasePath(tmp) <- "some path", "Provided path")