Skip to content

Commit

Permalink
test different forw/backw settings (@todo)
Browse files Browse the repository at this point in the history
  • Loading branch information
emiltin committed Jan 11, 2013
1 parent 7d7baa7 commit 724e96f
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions features/testbot/opposite.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
@routing @opposite @todo
Feature: Separate settings for forward/backward direction

Background:
Given the profile "testbot"

@smallest
Scenario: Going against the flow
Given the node map
| a | b |

And the ways
| nodes | highway |
| ab | river |

When I route I should get
| from | to | route | distance | time |
| a | b | ab | 100m | 10s |
| b | a | ab | 100m | 20s |

3 comments on commit 724e96f

@DennisOSRM
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A first implementation is working

$ cucumber -t @opposite -f progress
Using the default profile...
Ruby version 1.9.3
Using default port 5000
.....

1 scenario (1 passed)
4 steps (4 passed)
0m0.251s

@emiltin
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

very cool!!

@DennisOSRM
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The feature is implemented in a way that it will also allow maxspeed:forward and maxspeed:backward. A few tests would be cool for that.

Please sign in to comment.