Skip to content

Commit

Permalink
Document more Conda discrepencies
Browse files Browse the repository at this point in the history
  • Loading branch information
AntoinePrv committed Mar 6, 2024
1 parent 38dedb3 commit 7fb6d1b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions libmamba/tests/src/specs/test_match_spec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,16 @@ TEST_SUITE("specs::match_spec")

TEST_CASE("Conda discrepencies")
{
SUBCASE("python=3.7=bld")
{
// For some reason, conda parses version differently in `python=3.7` and
// `python=3.7=bld`.
// It is `=3.7` and `==3.7` in the later.
auto ms = MatchSpec::parse("python=3.7=bld").value();
CHECK_EQ(ms.version().str(), "=3.7");
CHECK_EQ(ms.build_string().str(), "bld");
}

SUBCASE("python[version>3]")
{
// Supported by conda but we consider to be already served by `version=">3"`
Expand Down

0 comments on commit 7fb6d1b

Please sign in to comment.