Skip to content

Commit

Permalink
Add another non-regression test for mamba-org#3453
Browse files Browse the repository at this point in the history
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
  • Loading branch information
jjerphan committed Sep 30, 2024
1 parent d07b761 commit 940dce1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions libmamba/tests/src/specs/test_match_spec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,14 @@ TEST_SUITE("specs::match_spec")
CHECK_EQ(ms.str(), R"ms(python-graphviz[version=">=0.20,=0"])ms");
}

SUBCASE("python-graphviz ~= 0.20")
{
auto ms = MatchSpec::parse("python-graphviz ~= 0.20").value();
CHECK_EQ(ms.name().str(), "python-graphviz");
CHECK_EQ(ms.version().str(), ">=0.20,=0");
CHECK_EQ(ms.str(), R"ms(python-graphviz[version=">=0.20,=0"])ms");
}

SUBCASE("*[md5=fewjaflknd]")
{
auto ms = MatchSpec::parse("*[md5=fewjaflknd]").value();
Expand Down

0 comments on commit 940dce1

Please sign in to comment.