Skip to content

Commit

Permalink
Alguns testes de limites #77
Browse files Browse the repository at this point in the history
  • Loading branch information
naoliv committed Oct 9, 2015
1 parent 78c7a30 commit 50706cd
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion staging.validator.mapcss
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,21 @@ way[highway $= _link][eval(waylength()) > 250] {
throwWarning: tr("verificar: {0} com comprimento muito grande", tag("highway"));
}

*highway[name =~ /\b[A-Z]{2,3} (- )?[0-9]{3}\b/] {
*[highway][name =~ /\b[A-Z]{2,3} (- )?[0-9]{3}\b/] {
throwError: tr("rodovia com ref no nome");
}

/* --> issue #77 */
area[admin_level =~ /^(8|9)$/][place] {
throwError: tr("limite não deve possuir {0}", "{1.key}");
}

area[place =~ /^(neighbourhood|suburb)$/][admin_level][admin_level != 10] {
throwError: tr("local com {0} ou {1} errado", "{0.key}", "{1.key}");
}

relation[admin_level = 10] >[role = admin_centre] node {
throwError: tr("bairro não deve possuir admin_centre");
suggestAlternative: "label";
}
/* issue #77 <-- */

0 comments on commit 50706cd

Please sign in to comment.