Skip to content

Commit

Permalink
Fix OSMTools
Browse files Browse the repository at this point in the history
  • Loading branch information
ebocher committed Nov 14, 2023
1 parent e45e679 commit b8bc521
Showing 1 changed file with 11 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -278,9 +278,12 @@ class UtilitiesTest extends AbstractOSMToolsTest {
"out;", OSMTools.Utilities.buildOSMQuery(enveloppe, ["building", "water"], OSMElement.NODE, OSMElement.WAY)
assertEquals "[bbox:7.6,0.0,8.9,2.3];\n" +
"(\n" +
"\tnode[\"building\"];\n" +
"\tway[\"building\"];\n" +
"\trelation[\"building\"];\n" +
");\n" +
"(._;>;);\n" +
"out;", OSMTools.Utilities.buildOSMQuery(enveloppe, ["building", "water"])
"out;", OSMTools.Utilities.buildOSMQuery(enveloppe, ["building"])
assertEquals "[bbox:7.6,0.0,8.9,2.3];\n" +
"(\n" +
");\n" +
Expand Down Expand Up @@ -315,19 +318,19 @@ class UtilitiesTest extends AbstractOSMToolsTest {
"\tway[\"water\"];\n" +
");\n" +
">;);\n" +
"out;", Utilities.buildOSMQueryWithAllData(enveloppe, ["building", "water"], OSMElement.NODE, OSMElement.WAY)
"out;", OSMTools.Utilities.buildOSMQueryWithAllData(enveloppe, ["building", "water"], OSMElement.NODE, OSMElement.WAY)
assertEquals "[bbox:7.6,0.0,8.9,2.3];\n" +
"((\n" +
");\n" +
">;);\n" +
"out;", Utilities.buildOSMQueryWithAllData(enveloppe, ["building", "water"])
"out;", OSMTools.Utilities.buildOSMQueryWithAllData(enveloppe, ["building", "water"])
assertEquals "[bbox:7.6,0.0,8.9,2.3];\n" +
"((\n" +
"\tnode;\n" +
"\tway;\n" +
");\n" +
">;);\n" +
"out;", Utilities.buildOSMQueryWithAllData(enveloppe, [], OSMElement.NODE, OSMElement.WAY)
"out;", OSMTools.Utilities.buildOSMQueryWithAllData(enveloppe, [], OSMElement.NODE, OSMElement.WAY)
}

/**
Expand Down Expand Up @@ -366,9 +369,12 @@ class UtilitiesTest extends AbstractOSMToolsTest {
"out;", OSMTools.Utilities.buildOSMQuery(polygon, ["building", "water"], OSMElement.NODE, OSMElement.WAY)
assertEquals "[bbox:2.3,0.0,8.9,7.6];\n" +
"(\n" +
"\tnode[\"building\"](poly:\"2.3 0.0 2.3 7.6 8.9 7.6 8.9 0.0\");\n" +
"\tway[\"building\"](poly:\"2.3 0.0 2.3 7.6 8.9 7.6 8.9 0.0\");\n" +
"\trelation[\"building\"](poly:\"2.3 0.0 2.3 7.6 8.9 7.6 8.9 0.0\");\n" +
");\n" +
"(._;>;);\n" +
"out;", OSMTools.Utilities.buildOSMQuery(polygon, ["building", "water"])
"out;", OSMTools.Utilities.buildOSMQuery(polygon, ["building"])
assertEquals "[bbox:2.3,0.0,8.9,7.6];\n" +
"(\n" +
");\n" +
Expand Down

0 comments on commit b8bc521

Please sign in to comment.