From 8485a94fb800c395f2d1e5e7eeb53b60e5e5070a Mon Sep 17 00:00:00 2001 From: diliz Date: Tue, 18 Jun 2024 11:10:09 +0200 Subject: [PATCH] fix: added no operator metadatas tests --- constraints_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/constraints_test.go b/constraints_test.go index 7102044..91cc030 100644 --- a/constraints_test.go +++ b/constraints_test.go @@ -309,7 +309,9 @@ func TestConstraintsCheck(t *testing.T) { {"= 2.0", "1.2.3", false}, {"= 2.0", "2.0.0", true}, {"4.1", "4.1.0", true}, + {"4.1", "4.1.3+alpha", true}, {"4.1.x", "4.1.3", true}, + {"4.1.x", "4.1.3+alpha", true}, {"1.x", "1.4", true}, {"!=4.1", "4.1.0", false}, {"!=4.1-alpha", "4.1.0-alpha", false}, @@ -493,7 +495,9 @@ func TestConstraintsValidate(t *testing.T) { {"= 2.0", "1.2.3", false}, {"= 2.0", "2.0.0", true}, {"4.1", "4.1.0", true}, + {"4.1", "4.1.3+alpha", true}, {"4.1.x", "4.1.3", true}, + {"4.1.x", "4.1.3+alpha", true}, {"1.x", "1.4", true}, {"!=4.1", "4.1.0", false}, {"!=4.1", "5.1.0", true},