From 230fec9cdb2e299ca02decf91c1b05a2c8c84d75 Mon Sep 17 00:00:00 2001 From: Emil Tin Date: Tue, 2 Oct 2012 21:16:42 +0200 Subject: [PATCH] add distance test with lots of small segments --- features/testbot/distance.feature | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/features/testbot/distance.feature b/features/testbot/distance.feature index b2b42cc59..4760d1a00 100644 --- a/features/testbot/distance.feature +++ b/features/testbot/distance.feature @@ -215,4 +215,22 @@ Feature: Distance calculation | x | u | xu | 3610m +-1 | | x | v | xv | 4240m +-1 | | x | w | xw | 3610m +-1 | - | x | y | xy | 3160m +-1 | \ No newline at end of file + | x | y | xy | 3160m +-1 | + + @maze + Scenario: Distance of a winding south-north path + Given a grid size of 7 meters + Given the node map + | a | b | s | t | + | d | c | r | q | + | e | f | o | p | + | h | g | n | m | + | i | j | k | l | + + And the ways + | nodes | + | abcdefghijklmnopqrst | + + When I route I should get + | from | to | route | distance | + | a | t | abcdefghijklmnopqrst | 133m +-1 |