@@ -448,6 +448,11 @@ func Test_detectDeprecations(t *testing.T) {
448448 locale .Tr ("pjfile_deprecation_entry" , "constraints" , "0" ),
449449 },
450450 },
451+ {
452+ "Constraints Commented Out" ,
453+ `#constraints: 0` ,
454+ []string {},
455+ },
451456 {
452457 "Platforms" ,
453458 `platforms: 0"` ,
@@ -464,10 +469,10 @@ func Test_detectDeprecations(t *testing.T) {
464469 },
465470 {
466471 "Mixed" ,
467- "foo: 0\n constraints: 0\n bar: 0\n languages: 0, platforms : 0" ,
472+ "foo: 0\n constraints: 0\n bar: 0\n languages: 0\n platforms : 0" ,
468473 []string {
469- locale .Tr ("pjfile_deprecation_entry" , "constraints" , "6 " ),
470- locale .Tr ("pjfile_deprecation_entry" , "languages" , "28 " ),
474+ locale .Tr ("pjfile_deprecation_entry" , "constraints" , "7 " ),
475+ locale .Tr ("pjfile_deprecation_entry" , "languages" , "29 " ),
471476 locale .Tr ("pjfile_deprecation_entry" , "platforms" , "42" ),
472477 },
473478 },
@@ -481,9 +486,9 @@ languages:
481486 constraints:
482487 platform: Windows10Label,Linux64Label` ,
483488 []string {
484- locale .Tr ("pjfile_deprecation_entry" , "platforms" , "108 " ),
485- locale .Tr ("pjfile_deprecation_entry" , "languages" , "142 " ),
486- locale .Tr ("pjfile_deprecation_entry" , "constraints" , "166 " ),
489+ locale .Tr ("pjfile_deprecation_entry" , "platforms" , "109 " ),
490+ locale .Tr ("pjfile_deprecation_entry" , "languages" , "143 " ),
491+ locale .Tr ("pjfile_deprecation_entry" , "constraints" , "167 " ),
487492 },
488493 },
489494 {
0 commit comments