Skip to content

Commit 3e7b174

Browse files
committed
Adapt test for win
1 parent 199b995 commit 3e7b174

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

libmamba/tests/src/specs/test_conda_url.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -545,15 +545,16 @@ namespace
545545
SECTION("file://D:/a/_temp/popen-gw0/some_other_parts")
546546
{
547547
auto url = CondaURL::parse("file://D:/a/_temp/popen-gw0/some_other_parts").value();
548-
REQUIRE(url.str() == "file:////D:/a/_temp/popen-gw0/some_other_parts");
549548
REQUIRE(url.pretty_str() == "file:////D:/a/_temp/popen-gw0/some_other_parts");
550549
if (mamba::util::on_win)
551550
{
552551
REQUIRE(url.path() == "/D:/a/_temp/popen-gw0/some_other_parts");
552+
REQUIRE(url.str() == "file:///D:/a/_temp/popen-gw0/some_other_parts");
553553
}
554554
else
555555
{
556556
REQUIRE(url.path() == "//D:/a/_temp/popen-gw0/some_other_parts");
557+
REQUIRE(url.str() == "file:////D:/a/_temp/popen-gw0/some_other_parts");
557558
}
558559
}
559560

0 commit comments

Comments
 (0)