Skip to content

Commit

Permalink
uncomment
Browse files Browse the repository at this point in the history
  • Loading branch information
msbarry committed Sep 24, 2024
1 parent 8aad6ea commit 300e954
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1306,16 +1306,16 @@ void testWikidataParse() {
value: "${feature.tags.wikidata != null ? int(feature.tags.wikidata.replace('Q', '')) : 0}"
""";
this.planetilerConfig = PlanetilerConfig.from(Arguments.of(Map.of()));
// testPoint(config, Map.of(
// "wikidata", "Q235"
// ), feature -> {
// assertEquals(Map.of("wikidata", 235L), feature.getAttrsAtZoom(14));
// }, 1);
// testPoint(config, Map.of(
// "wikidata", "235"
// ), feature -> {
// assertEquals(Map.of("wikidata", 235L), feature.getAttrsAtZoom(14));
// }, 1);
testPoint(config, Map.of(
"wikidata", "Q235"
), feature -> {
assertEquals(Map.of("wikidata", 235L), feature.getAttrsAtZoom(14));
}, 1);
testPoint(config, Map.of(
"wikidata", "235"
), feature -> {
assertEquals(Map.of("wikidata", 235L), feature.getAttrsAtZoom(14));
}, 1);
testPoint(config, Map.of(
), feature -> {
assertEquals(Map.of("wikidata", 0L), feature.getAttrsAtZoom(14));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ class ExpressionTests {
"{'a': 2}.has('a', 3)|false|boolean",
"{'a': 1}.has('b')|false|boolean",
"int({'tags': {'wikidata': 'Q1'}}.tags.wikidata.replace('Q', ''))|1|long",
"{'tags': {}}.tags.wikidata == null|true|boolean",

"coalesce({'a': 1}.get('a'), 2)|1|long",
"coalesce({'a': 1}.get('b'), 2)|2|long",
Expand Down

0 comments on commit 300e954

Please sign in to comment.