tests/testthat/test-locations.R

context("locations")

test_that("abort invalid query", {
  expect_error(locations(y = 42))
  expect_error(locations(x = 42))
  expect_gt(nrow(locations(query = "Bern")), 0)
})
retowyss/swiss-public-transport-r documentation built on May 8, 2019, 6:50 p.m.