Skip to content

Commit

Permalink
Fix tests after removing initial space in features
Browse files Browse the repository at this point in the history
Queries in opq_string still produce the same indentation and spaciation
  • Loading branch information
jmaspons committed Dec 30, 2022
1 parent 3863012 commit 0208698
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/testthat/test-osmdata.R
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,14 @@ test_that ("add feature", {
key = "highway", value = "!primary",
match_case = FALSE
)
expect_identical (qry1$features, " [\"highway\"]")
expect_identical (qry2$features, " [\"highway\"=\"primary\"]")
expect_identical (qry1$features, "[\"highway\"]")
expect_identical (qry2$features, "[\"highway\"=\"primary\"]")
expect_identical (
qry3$features,
" [\"highway\"~\"^(primary|tertiary)$\"]"
"[\"highway\"~\"^(primary|tertiary)$\"]"
)
expect_identical (qry4$features, " [\"highway\"!=\"primary\"]")
expect_identical (qry5$features, " [\"highway\"!=\"primary\",i]")
expect_identical (qry4$features, "[\"highway\"!=\"primary\"]")
expect_identical (qry5$features, "[\"highway\"!=\"primary\",i]")

bbox <- c (-0.118, 51.514, -0.115, 51.517)
qry <- opq (bbox = bbox)
Expand Down

0 comments on commit 0208698

Please sign in to comment.