Skip to content

Commit

Permalink
check lane numbers in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
chaupow committed Jan 17, 2018
1 parent e0dfff5 commit a4e37fc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
10 changes: 7 additions & 3 deletions features/options/extract/turn_function.feature
Original file line number Diff line number Diff line change
Expand Up @@ -60,18 +60,22 @@ Feature: Turn Function Information
"""
And the ways
| nodes | highway |
| ab | motorway |
| bc | motorway_link |
| nodes | highway | lanes |
| ab | motorway | 3 |
| bc | motorway_link | |

And the data has been saved to disk

When I run "osrm-extract --profile {profile_file} {osm_file}"
Then it should exit successfully
And stdout should contain "source_is_motorway true"
And stdout should contain "source_is_link false"
And stdout should contain "source_speed 90"
And stdout should contain "source_number_of_lanes 3"
And stdout should contain "target_is_motorway false"
And stdout should contain "target_is_link true"
# Question @review: should number_of_lanes when untagged be 0 or 1?
And stdout should contain "target_number_of_lanes 0"
And stdout should contain "number_of_roads 2"

Scenario: Turns should have correct information of other roads at intersection I
Expand Down
3 changes: 2 additions & 1 deletion features/support/hooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ module.exports = function () {
.defer(mkdirp, logDir)
.defer(rimraf, this.scenarioLogFile)
.awaitAll(callback);
console.log(" Writing logging output to " + this.scenarioLogFile)
// Question @review is this line nice to have here (commented, but ready to use and uncomment if needed?)
// console.log(" Writing logging output to " + this.scenarioLogFile)
});

this.After((scenario, callback) => {
Expand Down

0 comments on commit a4e37fc

Please sign in to comment.