Add more tests

This commit is contained in:
Pieter Vander Vennet 2020-09-30 13:46:47 +02:00
parent aa3b669da9
commit 531ab5241c
3 changed files with 14 additions and 6 deletions

View file

@ -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},

View file

@ -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,
1 access oneway speed priority highway _relation:bicycle.network_by_operator
2 no both 0 0
3 yes both 15 1.9 residential
4 yes both 15 6.9 residential yes
5 dismount both 2.25 0.1995 footway

View 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
1 access oneway speed priority highway _relation:bicycle.network_by_operator
2 no both 0 0
3 yes both 15 0.09 residential
4 yes both 15 50.09 residential yes
5 dismount both 2.25 0.019 footway
6 yes both 15 50.09 residential yes
7 designated both 15 50.15 cycleway yes
8 yes both 15 0.09 residential no
9 designated both 15 0.15 cycleway no