Skip to content

Commit

Permalink
Add versionless test case for strip_packaging_and_classifier_and_version
Browse files Browse the repository at this point in the history
  • Loading branch information
dmivankov committed Jan 25, 2022
1 parent f3eb06a commit bcdef21
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/unit/coursier_utilities_test.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,12 @@ def _strip_packaging_and_classifier_and_version_test_impl(ctx):
"groupId:artifactId",
strip_packaging_and_classifier_and_version("groupId:artifactId:pom:sources:version"),
)
# versionless coordinates aren't standard Maven coordinates but are useful for the artifact() macro
asserts.equals(
env,
"groupId:artifactId",
strip_packaging_and_classifier_and_version("groupId:artifactId"),
)
return unittest.end(env)

strip_packaging_and_classifier_and_version_test = unittest.make(_strip_packaging_and_classifier_and_version_test_impl)
Expand Down

0 comments on commit bcdef21

Please sign in to comment.