Skip to content

Commit

Permalink
spaceout test-frequencies.R
Browse files Browse the repository at this point in the history
  • Loading branch information
mpadge committed Aug 16, 2023
1 parent 07d158a commit 10255ec
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: gtfsrouter
Title: Routing with GTFS (General Transit Feed Specification) Data
Version: 0.1.0.027
Version: 0.1.0.028
Authors@R: c(
person("Mark", "Padgham", , "[email protected]", role = c("aut", "cre")),
person("Marcin", "Stepniak", , "[email protected]", role = "aut",
Expand Down
2 changes: 1 addition & 1 deletion codemeta.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"codeRepository": "https://github.com/UrbanAnalyst/gtfsrouter",
"issueTracker": "https://github.com/UrbanAnalyst/gtfsrouter/issues",
"license": "https://spdx.org/licenses/GPL-3.0",
"version": "0.1.0.027",
"version": "0.1.0.028",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "R",
Expand Down
9 changes: 5 additions & 4 deletions tests/testthat/test-frequencies.R
Original file line number Diff line number Diff line change
Expand Up @@ -173,10 +173,11 @@ test_that ("gtfs with mixed frequencies", {
gtfs$routes [route_short_name ==
"U1"] [["route_id"]]]

sel_trip_id_U1 <- head (gtfs$stop_times [trip_id %in% # nolint
trips_U1$trip_id,
.N,
by = "trip_id"
sel_trip_id_U1 <- head (gtfs$stop_times [
trip_id %in% # nolint
trips_U1$trip_id,
.N,
by = "trip_id"
] [N == max (N), trip_id], 1)

gtfs$trips <- gtfs$trips [trip_id %in% c (trips_U3$trip_id, sel_trip_id_U1)]
Expand Down

0 comments on commit 10255ec

Please sign in to comment.