And stdoutshouldcontain/roads_on_the_right\[1\]speed:[0-9]+,is_incoming:false,is_outgoing:true,highway_turn_classification:4,access_turn_classification:0/
# turning abc, give information about bd
And stdoutshouldcontain/roads_on_the_left\[1\]speed:[0-9]+,is_incoming:false,is_outgoing:true,highway_turn_classification:1,access_turn_classification:0/
Scenario: Turns should have correct information of other roads at intersection II
Given thenodemap
"""
d
|
v
a->b->c
"""
And theways
|nodes |highway |oneway |access |
|ab |secondary |yes | |
|bc |motorway |yes | |
|db |unclassified |yes |discouraged |
And thedatahasbeensavedtodisk
When Irun"osrm-extract--profile{profile_file}{osm_file}"
Then itshouldexitsuccessfully
And stdoutshouldcontain"number_of_roads3"
# turning dbc, give information about about ab
And stdoutshouldcontain/roads_on_the_right\[1\]speed:[0-9]+,is_incoming:true,is_outgoing:false,highway_turn_classification:3,access_turn_classification:0/
# turning abc, give information about about db
And stdoutshouldcontain/roads_on_the_left\[1\]speed:[0-9]+,is_incoming:true,is_outgoing:false,highway_turn_classification:0,access_turn_classification:1/
Scenario: Turns should have correct information of two-way roads at intersection
Given thenodemap
"""
b
|
a-c-d
|
e
"""
And theways
|nodes |highway |oneway |
|ac |motorway |yes |
|cd |motorway_link |yes |
|bc |trunk |yes |
|cb |trunk_link |yes |
|ce |primary |yes |
|ec |primary_link |yes |
And thedatahasbeensavedtodisk
When Irun"osrm-extract--profile{profile_file}{osm_file}"
Then itshouldexitsuccessfully
# Turn acd
# on the left there should be cb (and bc)
And stdoutshouldcontain/roads_on_the_left\[1\]speed:[0-9]+,is_incoming:true,is_outgoing:true,highway_turn_classification:[0-9]+,access_turn_classification:0,priority_class:3/
# on the right there should be ce and ec
And stdoutshouldcontain/roads_on_the_right\[1\]speed:[0-9]+,is_incoming:true,is_outgoing:true,highway_turn_classification:[0-9]+,access_turn_classification:0,priority_class:4/