Add more tests
This commit is contained in:
parent
aa3b669da9
commit
531ab5241c
3 changed files with 14 additions and 6 deletions
|
@ -54,12 +54,6 @@ namespace AspectedRouting
|
|||
{
|
||||
var behaviourDescription = behaviour.Value["description"].Evaluate(new Context()) as string;
|
||||
behaviourDescription ??= "";
|
||||
if (behaviourDescription.ToLower().Contains("[private]"))
|
||||
{
|
||||
// This profile is marked as private, we are hiding it
|
||||
continue;
|
||||
}
|
||||
|
||||
var meta = new Dictionary<string, string>
|
||||
{
|
||||
{"name", behaviour.Key},
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
access,oneway,speed,priority,highway,_relation:bicycle.network_by_operator
|
||||
no,both,0,0,,
|
||||
yes,both,15,1.9,residential,
|
||||
yes,both,15,6.9,residential,yes
|
||||
dismount,both,2.25,0.1995,footway,
|
|
9
Profiles/bicycle/tests/bicycle.genk.behaviour_test.csv
Normal file
9
Profiles/bicycle/tests/bicycle.genk.behaviour_test.csv
Normal file
|
@ -0,0 +1,9 @@
|
|||
access,oneway,speed,priority,highway,_relation:bicycle.network_by_operator
|
||||
no,both,0,0,,
|
||||
yes,both,15,0.09,residential,
|
||||
yes,both,15,50.09,residential,yes
|
||||
dismount,both,2.25,0.019,footway,
|
||||
yes,both,15,50.09,residential,yes
|
||||
designated,both,15,50.15,cycleway,yes
|
||||
yes,both,15,0.09,residential,no
|
||||
designated,both,15,0.15,cycleway,no
|
|
Loading…
Add table
Add a link
Reference in a new issue