Skip to content

Commit

Permalink
Add test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
Famlam committed Sep 13, 2024
1 parent cb92d3f commit e9e265e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugins/tests/test_mapcss_parsing_evaluation.py
Original file line number Diff line number Diff line change
Expand Up @@ -907,6 +907,7 @@ def way(self, data, tags, nds):
except mapcss.RuleAbort: pass
if match:
# throwWarning:"test #1610"
# assertMatch:"way x=\"C00; C1; C22\""
# assertMatch:"way x=C00;C1;C22"
# assertMatch:"way x=C1"
# assertNoMatch:"way x=C12"
Expand Down Expand Up @@ -1709,6 +1710,7 @@ class father:
self.check_not_err(n.node(data, {'x': '1'}), expected={'class': 6, 'subclass': 170749071})
with with_options(n, {'country': 'FR-GF'}):
self.check_err(n.node(data, {'x': '1'}), expected={'class': 6, 'subclass': 170749071})
self.check_err(n.way(data, {'x': 'C00; C1; C22'}, [0]), expected={'class': 16, 'subclass': 1785050832})
self.check_err(n.way(data, {'x': 'C00;C1;C22'}, [0]), expected={'class': 16, 'subclass': 1785050832})
self.check_err(n.way(data, {'x': 'C1'}, [0]), expected={'class': 16, 'subclass': 1785050832})
self.check_not_err(n.way(data, {'x': 'C12'}, [0]), expected={'class': 16, 'subclass': 1785050832})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ way[x~=C1] {
throwWarning: "test #1610";
assertMatch: "way x=C1";
assertMatch: "way x=C00;C1;C22";
assertMatch: "way x=\"C00; C1; C22\"";
assertNoMatch: "way x=C12";
}

Expand Down

0 comments on commit e9e265e

Please sign in to comment.