Skip to content

Commit

Permalink
test: Add non-regression test
Browse files Browse the repository at this point in the history
Signed-off-by: Julien Jerphanion <[email protected]>
  • Loading branch information
jjerphan committed Dec 3, 2024
1 parent c9eddf3 commit bccce93
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions libmamba/tests/src/specs/test_match_spec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -480,6 +480,15 @@ TEST_SUITE("specs::match_spec")
CHECK_EQ(ms.str(), R"ms(python-graphviz[version=">=0.20,=0"])ms");
}

SUBCASE("python[version='~=3.11.0',build=*_cpython]")
{
auto ms = MatchSpec::parse("python[version='~=3.11.0',build=*_cpython]").value();
CHECK_EQ(ms.name().str(), "python");
CHECK_EQ(ms.version().str(), ">=3.11.0,=3.11");
CHECK_EQ(ms.build_string().str(), "*_cpython");
CHECK_EQ(ms.str(), R"ms(python[version=">=3.11.0,=3.11",build="*_cpython"])ms");
}

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

0 comments on commit bccce93

Please sign in to comment.