Skip to content

Commit 3c6e4be

Browse files
committed
Add split/rsplit test subcase
1 parent 6829ba4 commit 3c6e4be

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

libmamba/tests/src/util/test_string.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -460,6 +460,10 @@ namespace
460460
std::vector<std::string> v21 = { "conda-forge/linux64:", "xtensor==0.12.3" };
461461

462462
REQUIRE(rsplit("conda-forge/linux64::xtensor==0.12.3", ":", 1) == v21);
463+
464+
std::vector<std::string> es3 = { "" };
465+
REQUIRE(split(es3[0], ".") == es3);
466+
REQUIRE(rsplit(es3[0], ".") == es3);
463467
}
464468

465469
TEST_CASE("join")

0 commit comments

Comments
 (0)