Skip to content

Commit

Permalink
Add test for empty strings
Browse files Browse the repository at this point in the history
  • Loading branch information
Hind-M committed Jun 15, 2023
1 parent faf0504 commit da5d0e6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libmamba/tests/src/core/test_util_string.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,8 @@ namespace mamba

TEST_CASE("get_common_substr")
{
CHECK_EQ(get_common_substr("", ""), "");
CHECK_EQ(get_common_substr("", "test"), "");
CHECK_EQ(get_common_substr("test", "test"), "test");
CHECK_EQ(get_common_substr("test/chan", "test/chan"), "test/chan");
CHECK_EQ(get_common_substr("test/chan/label", "label/abcd/xyz"), "label");
Expand Down

0 comments on commit da5d0e6

Please sign in to comment.