tests/testthat/test-transit_network_to_sf.R

context("transit_network_to_sf")

testthat::skip_on_cran()

# expected behavior
test_that("transit_network_to_sf - expected behavior", {

  testthat::expect_type( transit_network_to_sf(r5r_core), 'list')
})



# Expected errors
test_that("transit_network_to_sf - expected errors", {

  # invalid input
  testthat::expect_error( transit_network_to_sf('a') )
})

Try the r5r package in your browser

Any scripts or data that you put into this service are public.

r5r documentation built on Aug. 8, 2023, 9:07 a.m.