@@ -20,6 +20,7 @@ func TestSemanticVersion_Constraint(t *testing.T) {
2020 {version : "0.6.0" , constraint : "> 0.1.0, < 0.5.0 || > 1.0.0, < 2.0.0" , satisfied : false },
2121 {version : "2.5.0" , constraint : "> 0.1.0, < 0.5.0 || > 1.0.0, < 2.0.0" , satisfied : false },
2222 {version : "2.3.1" , constraint : "2.3.1" , satisfied : true },
23+ {version : "1.0.0" , constraint : "= V1.0.0" , satisfied : true },
2324 {version : "2.3.1" , constraint : "= 2.3.1" , satisfied : true },
2425 {version : "2.3.1" , constraint : " = 2.3.1" , satisfied : true },
2526 {version : "2.3.1" , constraint : ">= 2.3.1" , satisfied : true },
@@ -227,6 +228,13 @@ func TestSemanticVersion_Compare_Format(t *testing.T) {
227228 otherFormat : SemanticFormat ,
228229 expectError : false ,
229230 },
231+ {
232+ name : "same format successful comparison with uppercase V prefix" ,
233+ thisVersion : "V1.2.3" ,
234+ otherVersion : "1.2.3" ,
235+ otherFormat : SemanticFormat ,
236+ expectError : false ,
237+ },
230238 {
231239 name : "same format successful comparison with prerelease" ,
232240 thisVersion : "1.2.3-alpha" ,
0 commit comments