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 Jan 16, 2025
1 parent 6d40f1d commit 17148e1
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 @@ -499,6 +499,15 @@ namespace
REQUIRE(ms.str() == R"ms(python-graphviz[version=">=0.20,=0"])ms");
}

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

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

0 comments on commit 17148e1

Please sign in to comment.