Skip to content

Commit 8485a94

Browse files
committed
fix: added no operator metadatas tests
1 parent ca72eb9 commit 8485a94

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

constraints_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,9 @@ func TestConstraintsCheck(t *testing.T) {
309309
{"= 2.0", "1.2.3", false},
310310
{"= 2.0", "2.0.0", true},
311311
{"4.1", "4.1.0", true},
312+
{"4.1", "4.1.3+alpha", true},
312313
{"4.1.x", "4.1.3", true},
314+
{"4.1.x", "4.1.3+alpha", true},
313315
{"1.x", "1.4", true},
314316
{"!=4.1", "4.1.0", false},
315317
{"!=4.1-alpha", "4.1.0-alpha", false},
@@ -493,7 +495,9 @@ func TestConstraintsValidate(t *testing.T) {
493495
{"= 2.0", "1.2.3", false},
494496
{"= 2.0", "2.0.0", true},
495497
{"4.1", "4.1.0", true},
498+
{"4.1", "4.1.3+alpha", true},
496499
{"4.1.x", "4.1.3", true},
500+
{"4.1.x", "4.1.3+alpha", true},
497501
{"1.x", "1.4", true},
498502
{"!=4.1", "4.1.0", false},
499503
{"!=4.1", "5.1.0", true},

0 commit comments

Comments
 (0)