make tests use fuzzy matching instead of tweaked expectations

This commit is contained in:
Dennis Luxen
2014-04-25 15:24:18 +02:00
parent 78f5753a3a
commit 51e8113a69
4 changed files with 35 additions and 35 deletions
+3 -3
View File
@@ -13,6 +13,6 @@ Feature: Separate settings for forward/backward direction
| abcd | river |
When I route I should get
| from | to | route | distance | speed |
| a | d | abcd | 300 +- 1m | 36 km/h |
| d | a | abcd | 300 +- 1m | 15 km/h |
| from | to | route | distance | speed |
| a | d | abcd | 300 +- 1m | 36 km/h |
| d | a | abcd | 300 +- 1m | 16 km/h +- 1 |
+3 -3
View File
@@ -26,6 +26,6 @@ Feature: Testbot - speeds
| ab | river |
When I route I should get
| from | to | route | speed | time | distance |
| a | b | ab | 36 km/h | 10s | 100m |
| b | a | ab | 15 km/h | 23s | 100m |
| from | to | route | speed | time | distance |
| a | b | ab | 36 km/h | 10s | 100m |
| b | a | ab | 16 km/h +- 1 | 23s | 100m |