Skip to content

Commit

Permalink
Test for station error with many calls
Browse files Browse the repository at this point in the history
  • Loading branch information
k5cents committed Feb 27, 2021
1 parent 87cc6e8 commit d0f3e20
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/testthat/test-rail-info.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,7 @@ test_that("stations info is listed for multiple stations", {
expect_type(s$LineCodes, "list")
expect_gt(length(unique(s$Code)), 1)
})

test_that("station info fails for more than 9", {
expect_error(station_info(StationCode = metro_stations[1:10]))
})

0 comments on commit d0f3e20

Please sign in to comment.