tests/testthat/test-rail-lines.R

test_that("all lines are returned", {
  skip_if_no_key()
  Sys.sleep(0.11)
  l <- rail_lines()
  expect_length(l, 5)
  expect_equal(nrow(l), 6)
  expect_s3_class(l, "data.frame")
})

Try the metro package in your browser

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

metro documentation built on Nov. 2, 2023, 6:06 p.m.