@@ -433,6 +433,11 @@ func Test_detectDeprecations(t *testing.T) {
433433 locale .Tr ("pjfile_deprecation_entry" , "constraints" , "0" ),
434434 },
435435 },
436+ {
437+ "Constraints Commented Out" ,
438+ `#constraints: 0` ,
439+ []string {},
440+ },
436441 {
437442 "Platforms" ,
438443 `platforms: 0"` ,
@@ -449,10 +454,10 @@ func Test_detectDeprecations(t *testing.T) {
449454 },
450455 {
451456 "Mixed" ,
452- "foo: 0\n constraints: 0\n bar: 0\n languages: 0, platforms : 0" ,
457+ "foo: 0\n constraints: 0\n bar: 0\n languages: 0\n platforms : 0" ,
453458 []string {
454- locale .Tr ("pjfile_deprecation_entry" , "constraints" , "6 " ),
455- locale .Tr ("pjfile_deprecation_entry" , "languages" , "28 " ),
459+ locale .Tr ("pjfile_deprecation_entry" , "constraints" , "7 " ),
460+ locale .Tr ("pjfile_deprecation_entry" , "languages" , "29 " ),
456461 locale .Tr ("pjfile_deprecation_entry" , "platforms" , "42" ),
457462 },
458463 },
@@ -466,9 +471,9 @@ languages:
466471 constraints:
467472 platform: Windows10Label,Linux64Label` ,
468473 []string {
469- locale .Tr ("pjfile_deprecation_entry" , "platforms" , "108 " ),
470- locale .Tr ("pjfile_deprecation_entry" , "languages" , "142 " ),
471- locale .Tr ("pjfile_deprecation_entry" , "constraints" , "166 " ),
474+ locale .Tr ("pjfile_deprecation_entry" , "platforms" , "109 " ),
475+ locale .Tr ("pjfile_deprecation_entry" , "languages" , "143 " ),
476+ locale .Tr ("pjfile_deprecation_entry" , "constraints" , "167 " ),
472477 },
473478 },
474479 {
0 commit comments