From bcdef21fcb05c8093ac87cc8bb2a8da6ce3f667d Mon Sep 17 00:00:00 2001 From: Dmitry Ivankov Date: Tue, 25 Jan 2022 11:10:40 +0100 Subject: [PATCH] Add versionless test case for strip_packaging_and_classifier_and_version --- tests/unit/coursier_utilities_test.bzl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/unit/coursier_utilities_test.bzl b/tests/unit/coursier_utilities_test.bzl index 06d558046..b98386251 100644 --- a/tests/unit/coursier_utilities_test.bzl +++ b/tests/unit/coursier_utilities_test.bzl @@ -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)